Skip to content

Commit b76849b

Browse files
jgelukclaude
andcommitted
ci: add dependabot configuration with auto-merge
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 820d4ee commit b76849b

3 files changed

Lines changed: 73 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "sunday"
8+
time: "22:00"
9+
timezone: "UTC"
10+
groups:
11+
all-dependencies:
12+
patterns:
13+
- "*"
14+
commit-message:
15+
prefix: "build(deps)"
16+
include: "scope"
17+
labels:
18+
- "dependencies"
19+
- "python"
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
schedule:
23+
interval: "weekly"
24+
day: "sunday"
25+
time: "22:00"
26+
timezone: "UTC"
27+
groups:
28+
all-dependencies:
29+
patterns:
30+
- "*"
31+
commit-message:
32+
prefix: "ci"
33+
include: "scope"
34+
labels:
35+
- "dependencies"
36+
- "github-actions"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 }}
18+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Dependabot auto-merge
2+
3+
on: pull_request
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
automerge:
11+
runs-on: ubuntu-latest
12+
if: github.actor == 'dependabot[bot]'
13+
steps:
14+
- name: Enable auto-merge for Dependabot PRs
15+
run: gh pr merge --auto --rebase "$PR_URL"
16+
env:
17+
PR_URL: ${{ github.event.pull_request.html_url }}
18+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+

0 commit comments

Comments
 (0)