You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The --devrelease option in cz bump is not correctly incrementing the version #1367
The issue seems to be with update_changelog_on_bump = true.
When I set this option to false, it correctly increments the version to 0.2.0.dev1, but it doesn't update the CHANGELOG.md.
Steps to reproduce
Set the pyproject.toml file to look like the example above.
The latest tag is 0.1.0.
Commit a feat: 2
Run cz bump -d 0
Commit a feat: 3
Runcz bump -d 1 (get an error)
Current behavior
Received an error output: No tag found to do an incremental changelog
Desired behavior
Upgrade the version to 0.2.0.dev1 and update the CHANGELOG.md
Screenshots
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
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
Activity
[-]`--devrelease` option is unable to correctly increment the version[/-][+]The `--devrelease` option in `cz bump` is not correctly incrementing the version[/+]Lee-W commentedon Apr 6, 2025
Hey, thanks for the detailed reproduction steps. I verify it it's a valid bug
bassemkaroui commentedon Apr 10, 2025
I have the same issue
senysenyseny16 commentedon May 30, 2025
the same issue
pkucmus commentedon Mar 16, 2026
The problem is in
commitizen/commitizen/version_schemes.py
Lines 36 to 38 in 818fa1a
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?)
Andromeda-bit01 commentedon May 8, 2026
I am having the same issue, any updates?
Lee-W commentedon May 9, 2026
not atm, feel free to send us a PR :)
SebassNoob commentedon Sep 8, 2026
hello, im running into this issue too!