Title: The `--devrelease` option in `cz bump` is not correctly incrementing the version · Issue #1367 · commitizen-tools/commitizen · GitHub
Open Graph Title: The `--devrelease` option in `cz bump` is not correctly incrementing the version · Issue #1367 · commitizen-tools/commitizen
X Title: The `--devrelease` option in `cz bump` is not correctly incrementing the version · Issue #1367 · commitizen-tools/commitizen
Description: 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...
Open Graph Description: 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 chang...
X Description: 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 chang...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1367
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The `--devrelease` option in `cz bump` is not correctly incrementing the version","articleBody":"# Description\n\nWhen executing `cz bump -d 1` while at `x.y.z.dev0`, I got:\n\n```plain\nbump: version 0.2.0.dev0 → 0.2.0.dev1\ntag to create: 0.2.0.dev1\nincrement detected: MINOR\n\nNo tag found to do an incremental changelog\n```\n\n---\n\nMy `pyproject.toml` has the following configuration:\n\n```toml\n[tool.commitizen]\nversion_provider = \"uv\"\nupdate_changelog_on_bump = true\nchangelog_incremental = true\n```\n\n---\n\nThe issue seems to be with `update_changelog_on_bump = true`.\nWhen I set this option to `false`, it correctly increments the version to `0.2.0.dev1`, but it doesn't update the `CHANGELOG.md`.\n\n# Steps to reproduce\n\nSet the `pyproject.toml` file to look like the example above.\n\nThe latest tag is `0.1.0`.\n\n1. Commit a `feat: 2`\n2. Run `cz bump -d 0`\n3. Commit a `feat: 3`\n4. Run`cz bump -d 1` (get an error)\n\n# Current behavior\n\nReceived an error output: `No tag found to do an incremental changelog`\n\n### Desired behavior\n\nUpgrade the version to `0.2.0.dev1` and update the `CHANGELOG.md`\n\n# Screenshots\n\n## Step 1 + Step 2\n\nOutput\n\n\n## Step 3 + Step 4\n\nOutput\n\n\n# Environment\n\nCommitizen Version: 4.4.1\nPython Version: 3.13.2 (main, Feb 5 2025, 19:11:32) [Clang 19.1.6 ]\nOperating System: Linux","author":{"url":"https://github.com/gbaian10","@type":"Person","name":"gbaian10"},"datePublished":"2025-03-03T21:42:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1367/commitizen/issues/1367"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:09c7c84f-d527-b07b-56e3-a0eb59ad2ceb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B326:31363C:128BEBE:17D285D:6975A9E6 |
| html-safe-nonce | ddb2994342da37fdbc01ff2fd29a8e0115c11180ee86b2e0a980ba313e88f7bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzI2OjMxMzYzQzoxMjhCRUJFOjE3RDI4NUQ6Njk3NUE5RTYiLCJ2aXNpdG9yX2lkIjoiODM3NjYzNjg5MjgyODI0ODU1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d55fd20feb3a985a181bd1bac14b3604afe433ac4b866d4cddfc28ccc60b7a55 |
| hovercard-subject-tag | issue:2892384324 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen/1367/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3408df5daa271856aa9fd4618da99046c10b2bcd00659fcc50fde0c7cf747449/commitizen-tools/commitizen/issues/1367 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3408df5daa271856aa9fd4618da99046c10b2bcd00659fcc50fde0c7cf747449/commitizen-tools/commitizen/issues/1367 |
| og:image:alt | 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 chang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gbaian10 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 106127589 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 106127589 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width