We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 959ea27 commit dba45efCopy full SHA for dba45ef
.github/workflows/dependabot-auto-approve.yml
@@ -0,0 +1,21 @@
1
+name: Dependabot auto-approve
2
+on: pull_request
3
+
4
+permissions:
5
+ pull-requests: write
6
7
+jobs:
8
+ dependabot:
9
+ runs-on: ubuntu-latest
10
+ if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'owner/my_repo'
11
+ steps:
12
+ - name: Dependabot metadata
13
+ id: metadata
14
+ uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7
15
+ with:
16
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
17
+ - name: Approve a PR
18
+ run: gh pr review --approve "$PR_URL"
19
+ env:
20
+ PR_URL: ${{github.event.pull_request.html_url}}
21
+ GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
0 commit comments