From 146bf3b88665cf19e30e486b7ed9e2a3ef2aafe1 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 15 May 2024 13:32:24 -0700 Subject: [PATCH] Auto-approve policy service PRs --- .github/policies/label-prs.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/policies/label-prs.yml b/.github/policies/label-prs.yml index a664c715eefc5..9c62586df7ca6 100644 --- a/.github/policies/label-prs.yml +++ b/.github/policies/label-prs.yml @@ -8,7 +8,8 @@ where: configuration: resourceManagementConfiguration: eventResponderTasks: - - if: + - description: Label community PRs + if: - payloadType: Pull_Request - isAction: action: Opened @@ -38,29 +39,31 @@ configuration: then: - addLabel: label: community-contribution - description: Label community PRs - - if: + - description: Label PRs from the Azure SDK bot + if: - payloadType: Pull_Request - isActivitySender: user: azure-sdk issueAuthor: False then: - approvePullRequest: - comment: "Approved, we'll :shipit: when all status checks pass." + comment: "Approved; this PR will merge when all status checks pass." - addLabel: label: ':octocat: auto-merge' - description: Label PRs from the Azure SDK bot - - if: + - description: Label PRs from Dotnet Policy Service + if: - payloadType: Pull_Request - isActivitySender: user: dotnet-policy-service issueAuthor: False then: + - approvePullRequest: + comment: "Approved; this PR will merge when all status checks pass." - addLabel: label: ':octocat: auto-merge' triggerOnOwnActions: true - description: Label PRs from Dotnet Policy Service - - if: + - description: Label PRs with okr-health + if: - payloadType: Pull_Request - or: - titleContains: @@ -72,8 +75,8 @@ configuration: then: - addLabel: label: okr-health - description: Label PRs with okr-health - - if: + - description: Label PRs with okr-freshness + if: - payloadType: Pull_Request - or: - titleContains: @@ -85,4 +88,3 @@ configuration: then: - addLabel: label: okr-freshness - description: Label PRs with okr-freshness