Skip to content

Commit f687119

Browse files
authored
Add Dependabot auto-merge workflow (#198)
## Summary - Add GitHub workflow to automatically approve and merge Dependabot PRs - Uses `merge` method for clean commit history
2 parents ffb9d41 + 0423e3f commit f687119

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Auto-merge Dependabot PRs
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
jobs:
11+
auto-merge:
12+
if: github.actor == 'dependabot[bot]'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Auto-merge Dependabot PR
16+
uses: ad/dependabot-auto-approve@v1
17+
with:
18+
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
merge-method: 'merge'

0 commit comments

Comments
 (0)