fix(ci): exempt Dependabot 'Bump' subjects from commitlint (#3761)#3813
Merged
Conversation
Dependabot keeps a capital 'Bump' in its commit subject even with the configured chore(deps)/chore(ci) prefix (.github/dependabot.yml), and subject-case (no sentence-case) rejects it — so EVERY Dependabot PR fails the Commit Messages gate (and CI Success cascades) despite green tests, needing a manual squash each time (#3757/#3758/#3759 were all blocked). Add a commitlint `ignores` predicate matching `<prefix>: Bump <pkg> from <a> to <b>` so those bot commits are exempt, WITHOUT weakening subject-case for humans. Verified via the commitlint CLI: Dependabot 'Bump' subjects pass; bad types and human sentence-case subjects still fail. Closes #3761. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Closes #3761.
Problem
Dependabot keeps a capital 'Bump' in its commit subject even with the configured
chore(deps)/chore(ci)prefix (.github/dependabot.yml), andsubject-case(nosentence-case) rejects it. So every Dependabot PR fails the Commit Messages gate (and CI Success cascades) despite green tests, requiring a manual squash-with-corrected-subject each time (#3757/#3758/#3759 were all blocked).Fix
Add a commitlint
ignorespredicate matching<prefix>: Bump <pkg> from <a> to <b>so those bot commits are exempt — without weakeningsubject-casefor human commits (the alternative, lowering the rule, was rejected).Verified (commitlint CLI)
chore(deps): Bump vitest from 4.1.7 to 4.1.8chore(ci): Bump actions/checkout from 4 to 5fix(mcp): break a cyclebadtype: whateverfeat: Add a thingConfig-only (root
commitlint.config.ts) — nosrc/change, no changeset.🤖 Generated with Claude Code