-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(bump): manual version bump if prerelease offset is configured #1358
fix(bump): manual version bump if prerelease offset is configured #1358
Conversation
9377d32
to
89677ae
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1358 +/- ##
==========================================
+ Coverage 97.33% 97.55% +0.21%
==========================================
Files 42 55 +13
Lines 2104 2620 +516
==========================================
+ Hits 2048 2556 +508
- Misses 56 64 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
If you use the prerelase offset in the .cz.toml, as in the following example, no bump with a manual version number is possible. The error occurs when bumping with manual version number: cz bump 9.8.7 --prerelease-offset cannot be combined with MANUAL_VERSION ```toml [tool.commitizen] changelog_incremental = true tag_format = "v$version" update_changelog_on_bump = true version = "1.2.0b13" prerelease_offset = 1 ```
89677ae
to
dfd2fdf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ckagerer !
@woile @noirbizarre This PR looks good to me. I'm going to merge it this days if there's no objection
LGTM
…On Tue, 18 Feb 2025, 07:53 Wei Lee, ***@***.***> wrote:
***@***.**** approved this pull request.
Thanks @ckagerer <https://github.com/ckagerer> !
@woile <https://github.com/woile> @noirbizarre
<https://github.com/noirbizarre> This PR looks good to me. I'm going to
merge it this days if there's no objection
—
Reply to this email directly, view it on GitHub
<#1358 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATXJWGCZRL32V4GBW6HOAT2QMGLZAVCNFSM6AAAAABXJTTSUWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDMMRTGE2TMNJYG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you !
Description
If a prerelease offset is configured (I introduced this about 2 years ago with PR #614), no bump is possible with the manual version.
To do this, the configuration must first be changed and then reset after the bump.
For this reason, it makes more sense to remove the check that prevents the manual bump.
Checklist
poetry all
locally to ensure this change passes linter check and testUpdate the documentation for the changesExpected behavior
Bumping a manual version works without changing the configuration file.
Steps to Test This Pull Request
cz bump 9.8.7
Additional context