fix(deps): stop double-deps in dependabot commit messages#49
Merged
Conversation
Our dependabot.yml was producing PR titles like:
build(deps)(deps): bump foo from 1 to 2
build(ci)(deps): bump actions/checkout from 5 to 6
…with a doubled `(deps)` scope. Root cause was a config that put
the conventional-commit scope INSIDE the prefix AND told dependabot
to add it AGAIN:
commit-message:
prefix: "build(deps)" ← scope already inlined here
include: "scope" ← dependabot also inserts "(deps)"
between prefix and ":"
Dependabot then composes:
<prefix><scope>: <message>
"build(deps)" + "(deps)" + ":" + ...
→ "build(deps)(deps): ..."
The fix is to keep `include: "scope"` (it's the part that varies per
dep / group / ecosystem and is genuinely useful) and trim `prefix`
down to just the conventional-commit type:
Gradle ecosystem entries:
prefix: "build(deps)" → "build"
→ "build(deps): bump foo from 1 to 2"
→ "build(deps-spring-boot): bump the spring-boot group ..."
github-actions ecosystem entry:
prefix: "build(ci)" → "ci"
→ "ci(deps): bump actions/checkout from 5 to 6"
Now titles read cleanly and the scope still distinguishes what kind
of bump landed.
All three commit-message blocks (SB3 gradle, SB4 gradle, github-
actions) updated in one pass; no other config touched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Quick fix for the
build(deps)(deps): ...(andbuild(ci)(deps): ...) double-scope titles dependabot was producing.Root cause
Dependabot composes
<prefix><scope>: <message>→"build(deps)" + "(deps)" + ":" + ...→ doubled.Fix
Keep
include: "scope"(the part that varies per dep / group / ecosystem and is genuinely useful), trimprefixto just the conventional-commit type:build(deps)buildbuild(deps): bump foo from 1 to 2build(deps)buildbuild(deps): bump the spring-boot group ...build(ci)cici(deps): bump actions/checkout from 5 to 6Verification
Config-only. CI
detectwill identify zero demos changed (no*-demo/paths touched) and build job will skip.Test plan