We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a417556 commit 8a88985Copy full SHA for 8a88985
1 file changed
.github/workflows/dependabot-auto-merge.yml
@@ -0,0 +1,26 @@
1
+name: Dependabot Auto-merge
2
+
3
+on: pull_request
4
5
+permissions:
6
+ contents: write
7
+ pull-requests: write
8
9
+jobs:
10
+ dependabot:
11
+ runs-on: ubuntu-latest
12
+ if: github.event.pull_request.user.login == 'dependabot[bot]' # Only run for Dependabot PRs
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v3
16
17
+ - name: Dependabot metadata
18
+ id: metadata
19
+ uses: dependabot/fetch-metadata@v1
20
+ with:
21
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
22
23
+ - name: Enable auto-merge for Dependabot PRs
24
+ run: gh pr merge --auto --squash "${{ github.event.pull_request.number }}"
25
+ env:
26
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments