Skip to content
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

The --devrelease option in cz bump is not correctly incrementing the version #1367

Open
gbaian10 opened this issue Mar 3, 2025 · 0 comments

Comments

@gbaian10
Copy link
Contributor

gbaian10 commented Mar 3, 2025

Description

When executing cz bump -d 1 while at x.y.z.dev0, I got:

bump: version 0.2.0.dev0 → 0.2.0.dev1
tag to create: 0.2.0.dev1
increment detected: MINOR

No tag found to do an incremental changelog

My pyproject.toml has the following configuration:

[tool.commitizen]
version_provider = "uv"
update_changelog_on_bump = true
changelog_incremental = true

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.

  1. Commit a feat: 2
  2. Run cz bump -d 0
  3. Commit a feat: 3
  4. 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

Image
Output
Image

Step 3 + Step 4

Image
Output
Image

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

@gbaian10 gbaian10 changed the title --devrelease option is unable to correctly increment the version The --devrelease option in cz bump is not correctly incrementing the version Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant