Title: Release after dev release results in error · Issue #1180 · commitizen-tools/commitizen · GitHub
Open Graph Title: Release after dev release results in error · Issue #1180 · commitizen-tools/commitizen
X Title: Release after dev release results in error · Issue #1180 · commitizen-tools/commitizen
Description: Description After creating a dev release I cannot create any release (dev or regular). The issue can be resolved if I remove the dev release from the changelog. Also based on the documentation one would expect X.Y.devN version to work, b...
Open Graph Description: Description After creating a dev release I cannot create any release (dev or regular). The issue can be resolved if I remove the dev release from the changelog. Also based on the documentation one ...
X Description: Description After creating a dev release I cannot create any release (dev or regular). The issue can be resolved if I remove the dev release from the changelog. Also based on the documentation one ...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1180
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Release after dev release results in error","articleBody":"### Description\r\n\r\nAfter creating a dev release I cannot create any release (dev or regular). The issue can be resolved if I remove the dev release from the changelog.\r\n\r\nAlso based on the [documentation](https://commitizen-tools.github.io/commitizen/tutorials/dev_releases/#about) one would expect `X.Y.devN` version to work, but that is not the case.\r\n\r\n### Steps to reproduce\r\n\r\n1. Create a dev release by running:\r\n`cz bump --devrelease 1`\r\nChangelog now contains entry for this dev release\r\n2. Create a regular release by running:\r\n`cz bump`\r\n\r\n### Current behavior\r\n\r\nError message:\r\n```\r\nchange: Update version to 4.8.0\r\ntag to create: v4.8.0\r\nincrement detected: MINOR\r\n\r\nNo tag found to do an incremental changelog\r\n```\r\nSeems like the only issue here is the changelog parsing.\r\n\r\n### Desired behavior\r\n\r\nCommitizen should be able to parse the changelog and create a new release. Remove the dev release from the changelog and add changes to the new release.\r\n\r\n### Screenshots\r\n\r\n_No response_\r\n\r\n### Environment\r\n\r\nCommitizen version: 3.27.0\r\nPython version: 3.12.3\r\nOS: macOS Sonoma 14.5\r\n\r\nConfig - pyproject.toml:\r\n```toml\r\n[tool.commitizen]\r\n version = \"4.8.0.dev5\"\r\n update_changelog_on_bump = true\r\n tag_format = \"v$version\"\r\n changelog_start_rev = \"v4.2.1\"\r\n changelog_merge_prerelease = true\r\n annotated_tag = true\r\n bump_message = \"change: Update version to $new_version\"\r\n version_files = [\r\n \"esptool/__init__.py:__version__\"\r\n ]\r\n change_type_order = [\r\n \"BREAKING CHANGE\",\r\n \"New Features\",\r\n \"Bug Fixes\",\r\n \"Code Refactoring\",\r\n \"Performance Improvements\"\r\n ]\r\n\r\n[tool.commitizen.change_type_map]\r\n feat = \"New Features\"\r\n fix = \"Bug Fixes\"\r\n refactor = \"Code Refactoring\"\r\n perf = \"Performance Improvements\"\r\n```","author":{"url":"https://github.com/peterdragun","@type":"Person","name":"peterdragun"},"datePublished":"2024-07-11T12:16:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1180/commitizen/issues/1180"}
| 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:6462e188-bccd-4e5c-3f7f-959d9979f1c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E67A:242272:FB31F9:157FC02:6A4DD58E |
| html-safe-nonce | cc63dbe1980c9825f098d5a58f78382c9f3c65915514ce93978f132e335f1b7a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjdBOjI0MjI3MjpGQjMxRjk6MTU3RkMwMjo2QTRERDU4RSIsInZpc2l0b3JfaWQiOiIyOTA2NTYwMzgxMzc4NzQ1NzQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dfdd9258dd6226d4d0bfc8dfc0ab27419c6a490f88c5759d31aae865d29f8887 |
| hovercard-subject-tag | issue:2403035597 |
| 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/1180/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d974bb725b2a8c9f54863e82b495792f5c7a00492fd559ef8caa465cc423388f/commitizen-tools/commitizen/issues/1180 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d974bb725b2a8c9f54863e82b495792f5c7a00492fd559ef8caa465cc423388f/commitizen-tools/commitizen/issues/1180 |
| og:image:alt | Description After creating a dev release I cannot create any release (dev or regular). The issue can be resolved if I remove the dev release from the changelog. Also based on the documentation one ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | peterdragun |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width