Skip to content

Commit eca04ac

Browse files
committed
Auto-merge Dependabot minor/patch updates, group PRs by severity
Groups minor+patch bumps into single PRs per ecosystem to reduce noise. Major version bumps get their own PRs for manual review. Auto-merge workflow squash-merges minor/patch PRs once CI passes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ea7fb5c commit eca04ac

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,26 @@ updates:
1010
directory: "/"
1111
schedule:
1212
interval: weekly
13+
groups:
14+
devcontainers:
15+
patterns: ["*"]
1316

1417
- package-ecosystem: "npm"
1518
directory: "/"
1619
schedule:
1720
interval: weekly
21+
groups:
22+
npm-minor-patch:
23+
update-types: ["minor", "patch"]
24+
npm-major:
25+
update-types: ["major"]
1826

1927
- package-ecosystem: "nuget"
2028
directory: "/src"
2129
schedule:
2230
interval: weekly
31+
groups:
32+
nuget-minor-patch:
33+
update-types: ["minor", "patch"]
34+
nuget-major:
35+
update-types: ["major"]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Dependabot Auto-Merge
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
jobs:
11+
automerge:
12+
if: github.actor == 'dependabot[bot]'
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- name: Fetch Dependabot metadata
16+
id: metadata
17+
uses: dependabot/fetch-metadata@v2
18+
with:
19+
github-token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Auto-merge minor and patch updates
22+
if: steps.metadata.outputs.update-type != 'version-update:semver-major'
23+
run: gh pr merge "$PR_URL" --squash --auto
24+
env:
25+
PR_URL: ${{ github.event.pull_request.html_url }}
26+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)