Repository navigation
feat(bump): add retry_bump_after_failure config option - #2100
Open
EkinDeveci1907 wants to merge 4 commits into
Open
EkinDeveci1907 wants to merge 4 commits into
EkinDeveci1907 wants to merge 4 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2100 +/- ##
=======================================
Coverage 98.28% 98.28%
=======================================
Files 61 61
Lines 2862 2865 +3
=======================================
+ Hits 2813 2816 +3
Misses 49 49 ☔ View full report in Codecov by Harness. |
bearomorphism
requested review from
bearomorphism
and
a balanced review from Copilot
October 5, 2026 08:06
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new option is missing from default settings and user documentation.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Adds configurable retry behavior for failed cz bump commits.
Changes:
- Adds
retry_bump_after_failure. - Combines the setting with
--retry. - Tests configured retry behavior.
| File | Description |
|---|---|
commitizen/defaults.py |
Declares the new setting. |
commitizen/commands/bump.py |
Applies configured retry behavior. |
tests/commands/test_bump_command.py |
Tests a failed commit retry. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
bearomorphism
approved these changes
Oct 6, 2026
Co-authored-by: Tim Hsiung <bear890707@gmail.com>
This branch has not been deployed
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.


Description
adds a 'retry_bump_after_failure' config option so 'cz bump' can retry a failed commit without passing '--retry' everytime. This is the same idea as 'retry_after_failure' for 'cz commit'.
this covers action item 2 from #1302. Action item 1 (deprecating 'retry_after_failure' in favour of 'retry_commit_after_failure') is not part of this PR.
Checklist
Was generative AI tooling used to co-author this PR?
Generated-by: Claude following the guidelines
Code Changes
uv run poe alllocally to ensure this change passes linter check and testsExpected Behavior
with 'retry_bump_after_failure = true' in the config, 'cz bump --changelog' retries the commit once if the first attempt fails (for example when a pre-commit hook reformats the changelog), the same as running 'cz bump --changelog --retry'. the option defaults to 'false', so nothing changes for existing users.
Steps to Test This Pull Request
Additional Context
part of #1302
i ran 'uv run poe lint' and 'uv run poe test' locally and everything passes (1328 passed).