Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto merge PRs instead of just applying a label to them #77438

Merged
merged 1 commit into from
Mar 5, 2025
Merged
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
29 changes: 7 additions & 22 deletions .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,6 @@ configuration:

eventResponderTasks:

- description: Auto-approve auto-merge PRs
triggerOnOwnActions: false
if:
- payloadType: Pull_Request
- isPullRequest
- labelAdded:
label: auto-merge
- or:
- activitySenderHasPermission:
permission: Admin
- isActivitySender:
user: dotnet-bot
issueAuthor: False
then:
- approvePullRequest:
comment: Auto-approval

- description: Auto-approve maestro PRs
triggerOnOwnActions: false
if:
Expand Down Expand Up @@ -80,7 +63,7 @@ configuration:
- addMilestone:
milestone: Next

- description: Auto-approve OneLoc PRs
- description: Auto-approve/merge OneLoc PRs
triggerOnOwnActions: false
if:
- payloadType: Pull_Request
Expand All @@ -94,8 +77,10 @@ configuration:
- isAction:
action: Opened
then:
- addLabel:
label: auto-merge
- approvePullRequest:
comment: Auto-approve
- enableAutoMerge:
mergeMethod: merge

- description: Auto-approve/merge automated merge PRs
triggerOnOwnActions: false
Expand All @@ -113,8 +98,8 @@ configuration:
then:
- approvePullRequest:
comment: Auto-approve
- addLabel:
label: auto-merge
- enableAutoMerge:
mergeMethod: merge

- description: Remove "Need More Info" on comment
triggerOnOwnActions: false
Expand Down