Skip to content

Commit 55f034e

Browse files
committed
chore: add dependabot auto-merge workflow
1 parent 2da4884 commit 55f034e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Dependabot auto-merge
2+
on:
3+
pull_request_target:
4+
types: [opened, reopened, synchronize, ready_for_review]
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
jobs:
9+
dependabot:
10+
if: ${{ github.actor == 'dependabot[bot]' }}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: dependabot/fetch-metadata@v2
14+
id: metadata
15+
with:
16+
github-token: "${{ secrets.GITHUB_TOKEN }}"
17+
- name: Enable auto-merge
18+
uses: peter-evans/enable-pull-request-automerge@v3
19+
with:
20+
token: "${{ secrets.GITHUB_TOKEN }}"
21+
merge-method: squash

0 commit comments

Comments
 (0)