Skip to content

Commit e792bbc

Browse files
csi-lkgithub-actions[bot]
authored andcommitted
add auto merge github action
auto merge pull requests when they pass ci when applying automerge label to speedup workflow
1 parent 8e58b2d commit e792bbc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/auto-merge.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Auto Merge PR
2+
on:
3+
pull_request:
4+
types:
5+
- labeled
6+
- unlabeled
7+
- synchronize
8+
- opened
9+
- edited
10+
- ready_for_review
11+
- reopened
12+
- unlocked
13+
pull_request_review:
14+
types:
15+
- submitted
16+
status: {}
17+
jobs:
18+
automerge:
19+
name: Auto Merge (rebase)
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Merge pull request
23+
uses: pascalgn/[email protected]
24+
env:
25+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
26+
LABELS: "!wip"
27+
AUTOMERGE: "automerge"
28+
MERGE_METHOD: "rebase"

0 commit comments

Comments
 (0)