Skip to content

Commit

Permalink
Enable auto-merge of publish PRs (#39563)
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren authored Feb 16, 2024
1 parent 50b2733 commit 312e83e
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,44 @@ configuration:
- approvePullRequest:
comment: "Approved, we'll :shipit: when all status checks pass."
- addLabel:
label: azure-sdk-shipit
label: ':octocat: auto-merge'
description: Label PRs from the Azure SDK bot
- if:
- payloadType: Pull_Request
- isActivitySender:
user: dotnet-policy-service
issueAuthor: False
then:
- addLabel:
label: ':octocat: auto-merge'
description: Label PRs from Dotnet Policy Service
- if:
- payloadType: Pull_Request
- hasLabel:
label: azure-sdk-shipit
label: ':octocat: auto-merge'
- targetsBranch:
branch: main
then:
- enableAutoMerge:
mergeMethod: Squash
description: Auto-merge Azure SDK PRs with green builds
description: Auto-squash-merge PRs to main labeled with auto-merge
- if:
- payloadType: Pull_Request
- hasLabel:
label: ':octocat: auto-merge'
- targetsBranch:
branch: live
then:
- enableAutoMerge:
mergeMethod: Merge
description: Auto-merge PRs to live labeled with auto-merge
- if:
- payloadType: Pull_Request
- labelRemoved:
label: azure-sdk-shipit
label: ':octocat: auto-merge'
then:
- disableAutoMerge
description: Auto-merge Azure SDK PRs with green builds
description: Don't auto-merge PRs with auto-merge label removed
- if:
- payloadType: Pull_Request
then:
Expand Down

0 comments on commit 312e83e

Please sign in to comment.