Skip to content

chore(deps): fix Dependabot groups so dev/docs deps update in one PR - #479

Merged
shenxianpeng merged 1 commit into
mainfrom
chore/fix-dependabot-groups
Sep 12, 2026
Merged

chore(deps): fix Dependabot groups so dev/docs deps update in one PR#479
shenxianpeng merged 1 commit into
mainfrom
chore/fix-dependabot-groups

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Sep 11, 2026

Copy link
Copy Markdown
Member

Why

Dependabot keeps opening one PR per dev dependency (currently #474 for mypy and #478 for ruff) although dependabot.yml defines a dev group.

Root cause, taken from the Dependabot job logs (Insights → Dependency graph → Dependabot → uv.lock):

Two smaller issues fixed on the way:

What changed

  • org: explicit applies-to: version-updates, exact patterns clang-tools and cpp-linter.
  • dev: explicit applies-to: version-updates, no update-types, so major/minor/patch bumps of everything else land in one PR.
  • New security group (applies-to: security-updates, *) so security fixes stay grouped. Until now that only happened by accident. Drop it if individual security PRs are preferred.

How to verify

Merging triggers a uv job right away. Its log should say Found 2 group(s) and Dependabot should open a single "bump the dev group with N updates" PR; #474 and #478 then get superseded.

Fallback: if the log still reports one group, rename dev. GitHub appears to key the stale value on the group name, so a new name starts clean.

Summary by CodeRabbit

  • Chores
    • Updated automated dependency update grouping for clearer handling of development and tooling packages.
    • Added a dedicated group for security-related dependency updates.
    • Adjusted update scopes to distinguish version updates from security updates.

The `dev` group never applied to version updates: GitHub kept the
`applies-to: security-updates` value set in #345 after #353 removed the
key, so weekly jobs only carried the `org` group and every dev/docs bump
became an individual PR.

- set `applies-to: version-updates` explicitly on `org` and `dev`
- drop `update-types` so patch bumps join the group too
- match `org` packages exactly instead of `*` + exclude-patterns
  (`markdown-gfm-admonition` was landing in `org`)
- add a `security` group so security fixes stay grouped
@shenxianpeng
shenxianpeng requested a review from a team as a code owner September 11, 2026 20:50
@shenxianpeng
shenxianpeng requested review from 2bndy5 and removed request for a team September 11, 2026 20:50
@github-actions github-actions Bot added the bug Something isn't working label Sep 11, 2026
@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 081269ee-e6ff-413d-8318-6cbd35ffc59b

📥 Commits

Reviewing files that changed from the base of the PR and between 97585db and 8e6c7c0.

📒 Files selected for processing (1)
  • .github/dependabot.yml

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


Walkthrough

The Dependabot configuration separates version updates for organization packages and development packages. It also adds a group for security updates.

Changes

Dependabot grouping

Layer / File(s) Summary
Update group configuration
.github/dependabot.yml
The org group now targets clang-tools and cpp-linter. The dev group covers the remaining version updates. The new security group covers all security updates.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 8e6c7

This PR only adjusts Dependabot grouping behavior and is ready to merge with normal checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: updating Dependabot groups so development and documentation dependencies are grouped in one pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@shenxianpeng

Copy link
Copy Markdown
Member Author

Hopefully this change could work as expected

@2bndy5 2bndy5 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞

Here's hoping those dependabot bugs were fixed...

@shenxianpeng
shenxianpeng merged commit fd4db1a into main Sep 12, 2026
8 checks passed
@shenxianpeng
shenxianpeng deleted the chore/fix-dependabot-groups branch September 12, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants