Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/policies/pr.dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
id: pr.dependabot-auto-merge
name: GitOps.PullRequestIssueManagement
description: Automatically approve and merge Dependabot updates
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Approve and auto-merge Dependabot updates
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- hasLabel:
label: dependencies
- targetsBranch:
branch: main
- isActivitySender:
user: dependabot[bot]
issueAuthor: true
then:
- approvePullRequest:
comment: 'Approved automatically for a Dependabot update.'
- addLabel:
label: auto-merge
- enableAutoMerge:
mergeMethod: Squash

- description: Disable auto-merge when the auto-merge label is removed
if:
- payloadType: Pull_Request
- labelRemoved:
label: auto-merge
then:
- disableAutoMerge
onFailure:
onSuccess: