Skip to content

Commit 05a1d20

Browse files
authored
Auto merge code flow PRs
1 parent 550b6c7 commit 05a1d20

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/policies/resourceManagement.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,39 @@ 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
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:
1639
- payloadType: Issues
1740
- or:
1841
- isAction:
19-
action: Opened
42+
action: Opened
2043
then:
2144
- addLabel:
22-
label: untriaged
45+
label: untriaged
2346

2447
onFailure:
2548
onSuccess:

.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)