Skip to content

Commit 3344729

Browse files
jgelukclaude
andcommitted
ci: auto-approve dependabot PRs
Allows dependabot PRs to auto-merge without manual review while still requiring reviews for human PRs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b601841 commit 3344729

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Auto-approve Dependabot
2+
3+
on: pull_request_target
4+
5+
permissions:
6+
pull-requests: write
7+
8+
jobs:
9+
approve:
10+
runs-on: ubuntu-latest
11+
if: github.actor == 'dependabot[bot]'
12+
steps:
13+
- name: Approve Dependabot PR
14+
run: gh pr review --approve "$PR_URL"
15+
env:
16+
PR_URL: ${{ github.event.pull_request.html_url }}
17+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)