Skip to content

Commit ef3c7a2

Browse files
authored
Auto merge code flow PRs (#8044)
2 parents 550b6c7 + a64a6a1 commit ef3c7a2

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/policies/resourceManagement.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,29 @@ configuration:
1010

1111
eventResponderTasks:
1212

13+
- description: Auto-approve/merge automated merge PRs
14+
triggerOnOwnActions: false
15+
if:
16+
- payloadType: Pull_Request
17+
- isPullRequest
18+
- isActivitySender:
19+
user: github-actions[bot]
20+
issueAuthor: False
21+
- or:
22+
- titleContains:
23+
pattern: "[automated] Merge branch"
24+
isRegex: False
25+
- titleContains:
26+
pattern: "[automated] Update main version"
27+
isRegex: False
28+
- isAction:
29+
action: Opened
30+
then:
31+
- approvePullRequest:
32+
comment: Auto-approve
33+
- enableAutoMerge:
34+
mergeMethod: merge
35+
1336
- description: Add "untriaged" label to issues when opened
1437
triggerOnOwnActions: false
1538
if:

.github/workflows/branch-snap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ jobs:
3131
with:
3232
token: ${{ secrets.GITHUB_TOKEN }}
3333
commit-message: Update main version
34-
title: 'Update main version'
34+
title: '[automated] Update main version'
3535
branch: merge/update-main-version

0 commit comments

Comments
 (0)