Skip to content

Commit bd5cdf3

Browse files
adrianbradclaude
andauthored
ci(dependabot): group minor and patch updates into a single PR (#69)
Bundle GitHub Actions and Go module minor/patch bumps into one weekly PR per ecosystem. Major versions still open individual PRs so breaking changes get isolated review. Also extend the auto-merge gate to allow grouped PRs (which have an empty `update-type` and a populated `dependency-group`). Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f9a51a0 commit bd5cdf3

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.github/dependabot.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ updates:
1010
prefix: "build(deps)"
1111
reviewers:
1212
- "adrianbrad"
13+
groups:
14+
go-modules:
15+
patterns:
16+
- "*"
17+
update-types:
18+
- "minor"
19+
- "patch"
1320

1421
- package-ecosystem: github-actions
1522
directory: "/"
@@ -20,4 +27,11 @@ updates:
2027
commit-message:
2128
prefix: "build(deps)"
2229
reviewers:
23-
- "adrianbrad"
30+
- "adrianbrad"
31+
groups:
32+
github-actions:
33+
patterns:
34+
- "*"
35+
update-types:
36+
- "minor"
37+
- "patch"

.github/workflows/dependabot-auto-merge.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
github-token: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- name: Approve PR
24-
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
24+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.dependency-group != ''
2525
run: gh pr review --approve "$PR_URL"
2626
env:
2727
PR_URL: ${{ github.event.pull_request.html_url }}
2828
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929

3030
- name: Enable auto-merge
31-
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
31+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.dependency-group != ''
3232
run: gh pr merge --auto --squash "$PR_URL"
3333
env:
3434
PR_URL: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)