From 7bcc8e88a3523f503cf8bc27e4806411a13662b8 Mon Sep 17 00:00:00 2001 From: William Godbe Date: Mon, 28 Apr 2025 11:41:56 -0700 Subject: [PATCH 1/2] Add auto-merges for dependabot PRs --- .github/policies/resourceManagement.yml | 26 ++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index af34e1aa82a9..3d7eed0b3da9 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -646,6 +646,8 @@ configuration: - titleContains: pattern: Update .NET SDK isRegex: False + - targetsBranch: + branch: main then: - addLabel: label: area-infrastructure @@ -655,6 +657,28 @@ configuration: comment: Auto-approving SDK update. - enableAutoMerge: mergeMethod: "squash" - description: '[Infrastructure PRs] Add area-infrastructure label to SDK update Pull Requests' + description: '[Infrastructure PRs] Add area-infrastructure label to SDK update Pull Requests & enable auto-merge' + - if: + - payloadType: Pull_Request + - isAction: + action: Opened + - isActivitySender: + user: app/dependabot + issueAuthor: False + - titleContains: + pattern: (deps): + isRegex: False + - targetsBranch: + branch: main + then: + - addLabel: + label: area-infrastructure + - addLabel: + label: 'Type: Dependency Update :arrow_up_small:' + - approvePullRequest: + comment: Auto-approving dependabot update. + - enableAutoMerge: + mergeMethod: "squash" + description: '[Infrastructure PRs] Add area-infrastructure label to dependabot update Pull Requests & enable auto-merge' onFailure: onSuccess: From c94755c01d6f2ccc4304704fe37c6f9639d1085a Mon Sep 17 00:00:00 2001 From: William Godbe Date: Mon, 28 Apr 2025 11:44:30 -0700 Subject: [PATCH 2/2] Update resourceManagement.yml --- .github/policies/resourceManagement.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index 3d7eed0b3da9..0b6766c8a45c 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -665,9 +665,6 @@ configuration: - isActivitySender: user: app/dependabot issueAuthor: False - - titleContains: - pattern: (deps): - isRegex: False - targetsBranch: branch: main then: