[MINOR] Prefix Dependabot pull request titles with [MINOR] - #925
Merged
vinishjail97 merged 1 commit intoAug 31, 2026
Merged
Conversation
Dependabot names its pull requests "Bump <dependency> from <a> to <b>". That title matches none of the three formats the PR Title Validation workflow accepts, so every Dependabot pull request fails the check and a committer has to rename it by hand. PR apache#879 and PR apache#924 were both renamed this way. Set commit-message.prefix so Dependabot writes the prefix itself. The trailing space in the prefix value is deliberate. Dependabot appends a colon to any prefix that ends with an alphanumeric character or a closing bracket, so "[MINOR]" would yield "[MINOR]: Bump ..." and fail the check again. A prefix that already ends with a space is used verbatim.
rahil-c
approved these changes
Aug 31, 2026
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.
What is the purpose of the pull request
Dependabot names its pull requests
Bump <dependency> from <a> to <b>. That title matches none of the three formats.github/workflows/pr_title_validation.ymlaccepts, namely[<issue-number>] <description>,[MINOR] <description>, or a Conventional Commits prefix. Every Dependabot pull request therefore fails thevalidate-pr-titlecheck, and a committer has to rename it by hand. #879 and #924 were both renamed this way.This pull request sets
commit-message.prefixso Dependabot writes the prefix itself.Brief change log
commit-message.prefix: "[MINOR] "to thegithub-actionsentry in.github/dependabot.yml.The trailing space in the prefix value is deliberate, and a comment in the file records why. Dependabot appends a colon to any prefix that ends with an alphanumeric character or a closing bracket, so
"[MINOR]"would produce[MINOR]: Bump ...and fail the check again. A prefix that already ends with a space is used verbatim. Seetitle_builder.rbin dependabot-core.Verify this pull request
This pull request is a trivial rework / code cleanup without any test coverage.
The behaviour was verified in two parts, because Dependabot only regenerates titles on its next scheduled run.
[MINOR] Bump <dependency> from <a> to <b>. The prefix comes fromTitleBuilder#build, which returns"#{prefix}#{name}", and the YAML value parses as'[MINOR] 'with the space preserved.bashregexes frompr_title_validation.ymlagainst candidate titles gives:[MINOR] Bump actions/setup-java from 5 to 6matches^\[MINOR\]\ .+[MINOR] bump actions/setup-java from 5 to 6matches, so the check is insensitive to how Dependabot capitalises the first word[MINOR]: Bump actions/setup-java from 5 to 6does not match, which is the case the trailing space avoids