Repository navigation
The --devrelease option in cz bump is not correctly incrementing the version #1367
Copy link
Copy link
Open
Copy link
Labels
effects-of-ai-on-code-reviewFor SWE productivity study (temporary tag)For SWE productivity study (temporary tag)help wantedissue-status: wait-for-implementationmaintainers agree on the bug / featuremaintainers agree on the bug / feature
Description
Activity
- changed the title
[-]`--devrelease` option is unable to correctly increment the version[/-][+]The `--devrelease` option in `cz bump` is not correctly incrementing the version[/+]on Mar 3, 2025 - addedissue-status: wait-for-implementationmaintainers agree on the bug / featuremaintainers agree on the bug / feature
on Apr 6, 2025 Hey, thanks for the detailed reproduction steps. I verify it it's a valid bug
I have the same issue
Reacted by Arsenythe same issue
- addedeffects-of-ai-on-code-reviewFor SWE productivity study (temporary tag)For SWE productivity study (temporary tag)
on Jan 7, 2026 The problem is in
commitizen/commitizen/version_schemes.py
Lines 36 to 38 in 818fa1a
_DEFAULT_VERSION_PARSER = re.compile( r"v?(?P<version>([0-9]+)\.([0-9]+)(?:\.([0-9]+))?(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z.]+)?(\w+)?)" ) That's not the correct reg exp for PEP440, here's one https://peps.python.org/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions
I was able to fix that locally https://github.com/pkucmus/commitizen/tree/fix/1367-pep440-regexp but I have no idea how to fix all the unit tests that broke (in theory they shouldn't, right?)
I am having the same issue, any updates?
not atm, feel free to send us a PR :)
hello, im running into this issue too!
Metadata
Metadata
Assignees
Labels
effects-of-ai-on-code-reviewFor SWE productivity study (temporary tag)For SWE productivity study (temporary tag)help wantedissue-status: wait-for-implementationmaintainers agree on the bug / featuremaintainers agree on the bug / feature
Description
When executing
cz bump -d 1while atx.y.z.dev0, I got:My
pyproject.tomlhas the following configuration:The issue seems to be with
update_changelog_on_bump = true.When I set this option to
false, it correctly increments the version to0.2.0.dev1, but it doesn't update theCHANGELOG.md.Steps to reproduce
Set the
pyproject.tomlfile to look like the example above.The latest tag is
0.1.0.feat: 2cz bump -d 0feat: 3cz bump -d 1(get an error)Current behavior
Received an error output:
No tag found to do an incremental changelogDesired behavior
Upgrade the version to
0.2.0.dev1and update theCHANGELOG.mdScreenshots
Step 1 + Step 2
Output
Step 3 + Step 4
Output
Environment
Commitizen Version: 4.4.1
Python Version: 3.13.2 (main, Feb 5 2025, 19:11:32) [Clang 19.1.6 ]
Operating System: Linux