2 parents 04fec5d + fd10910 commit fb9dc10Copy full SHA for fb9dc10
1 file changed
.github/workflows/dependabot-auto-merge.yml
@@ -0,0 +1,24 @@
1
+name: Dependabot auto-merge
2
+
3
+on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - synchronize
8
+ - reopened
9
10
+permissions:
11
+ contents: write
12
+ pull-requests: write
13
14
+jobs:
15
+ enable-auto-merge:
16
+ if: github.event.pull_request.user.login == 'dependabot[bot]'
17
+ runs-on: ubuntu-latest
18
19
+ steps:
20
+ - name: Enable auto-merge
21
+ env:
22
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23
+ PR_URL: ${{ github.event.pull_request.html_url }}
24
+ run: gh pr merge --auto --squash "$PR_URL"
0 commit comments