Skip to content

Commit cf83ed2

Browse files
committed
ci: implement automated maintenance via dependabot automerge
Add a dedicated workflow to enable GitHub's native auto-merge feature for Dependabot PRs. This allows dependencies that pass CI to be merged automatically, reducing manual maintenance overhead.
1 parent 5be8ab5 commit cf83ed2

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)