Skip to content

Commit 404fb15

Browse files
authored
Add auto-merges for dependabot PRs targeting main (#61725)
* Add auto-merges for dependabot PRs * Update resourceManagement.yml
1 parent dda4725 commit 404fb15

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/policies/resourceManagement.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,8 @@ configuration:
646646
- titleContains:
647647
pattern: Update .NET SDK
648648
isRegex: False
649+
- targetsBranch:
650+
branch: main
649651
then:
650652
- addLabel:
651653
label: area-infrastructure
@@ -655,6 +657,25 @@ configuration:
655657
comment: Auto-approving SDK update.
656658
- enableAutoMerge:
657659
mergeMethod: "squash"
658-
description: '[Infrastructure PRs] Add area-infrastructure label to SDK update Pull Requests'
660+
description: '[Infrastructure PRs] Add area-infrastructure label to SDK update Pull Requests & enable auto-merge'
661+
- if:
662+
- payloadType: Pull_Request
663+
- isAction:
664+
action: Opened
665+
- isActivitySender:
666+
user: app/dependabot
667+
issueAuthor: False
668+
- targetsBranch:
669+
branch: main
670+
then:
671+
- addLabel:
672+
label: area-infrastructure
673+
- addLabel:
674+
label: 'Type: Dependency Update :arrow_up_small:'
675+
- approvePullRequest:
676+
comment: Auto-approving dependabot update.
677+
- enableAutoMerge:
678+
mergeMethod: "squash"
679+
description: '[Infrastructure PRs] Add area-infrastructure label to dependabot update Pull Requests & enable auto-merge'
659680
onFailure:
660681
onSuccess:

0 commit comments

Comments
 (0)