Skip to content

Commit 4f97f63

Browse files
Update auto-merge.yml
1 parent df5baad commit 4f97f63

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/auto-merge.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 🤖 Auto Merge
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, synchronize, opened, reopened]
6+
7+
permissions:
8+
pull-requests: write
9+
contents: read
10+
checks: read
11+
12+
jobs:
13+
enable-auto-merge:
14+
if: |
15+
contains(github.event.pull_request.labels.*.name, 'automerge') &&
16+
github.event.pull_request.draft == false
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Enable Auto Merge
21+
uses: peter-evans/enable-pull-request-automerge@v3
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
merge-method: squash

0 commit comments

Comments
 (0)