Title: Tag name validation issue on `cz bump --changelog` · Issue #845 · commitizen-tools/commitizen · GitHub
Open Graph Title: Tag name validation issue on `cz bump --changelog` · Issue #845 · commitizen-tools/commitizen
X Title: Tag name validation issue on `cz bump --changelog` · Issue #845 · commitizen-tools/commitizen
Description: Description When generating changelog, get_version_tags function from commitizen/changelog.py is validating existing tags as if they were version names with no additional text on them. This behavior conflicts with the feature of customiz...
Open Graph Description: Description When generating changelog, get_version_tags function from commitizen/changelog.py is validating existing tags as if they were version names with no additional text on them. This behavio...
X Description: Description When generating changelog, get_version_tags function from commitizen/changelog.py is validating existing tags as if they were version names with no additional text on them. This behavio...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/845
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tag name validation issue on `cz bump --changelog`","articleBody":"### Description\n\nWhen generating changelog, `get_version_tags` function from `commitizen/changelog.py` is validating existing tags as if they were version names with no additional text on them. This behavior conflicts with the feature of customizing `tag_format`\n\n### Steps to reproduce\n\n1. Use some custom prefixed tag_format in .cz.yaml, \r\n`tag_format: some-project-release-$version`\r\n\r\n2. Do initial version commit, bump and generate changelog: `cz bump --changelog`\r\n4. Do subsequent fix/feat commit, bump and generate changelog: `cz bump --changelog`\r\n\r\nER: Version bumped, changelog generated.\r\nAR: Error saying `No tag found to do an incremental changelog`\n\n### Current behavior\n\nget_version_tags function from commitizen/changelog.py is validating tag names as if they where version names, hence it's not able to return existing custom tags, an error appears saying `No tag found to do an incremental changelog`\n\n### Desired behavior\n\nAllow the changelog to generate regardless of tag name custom prefixes, possible solution could be to exclude the tag name prefix when checking with `scheme(tag.name)`\n\n### Screenshots\n\n_No response_\n\n### Environment\n\nCommitizen 3.8.2\r\nPython 3.10.12","author":{"url":"https://github.com/josuerzslzr","@type":"Person","name":"josuerzslzr"},"datePublished":"2023-09-14T03:21:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/845/commitizen/issues/845"}
| 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:4ee89060-b789-ebed-c3a1-fb2ff155d1d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D44:35C55B:1297EA3:19A5839:6A4DE6C3 |
| html-safe-nonce | afe5b563acc62baa2d7cdbab282adfa7c537c5a695119ea5f01c7218cb61564f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDQ0OjM1QzU1QjoxMjk3RUEzOjE5QTU4Mzk6NkE0REU2QzMiLCJ2aXNpdG9yX2lkIjoiOTIzOTc4NDI5Mjk1ODc5ODc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2faf28e4bf370f68db961cbc6a16c6ac0dea927ab9860faaf6bf4265a151b944 |
| hovercard-subject-tag | issue:1895587256 |
| 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/845/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba181c5710cebc2d324571b38fa835130036bbbb85c41fa7f1db231936a42384/commitizen-tools/commitizen/issues/845 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba181c5710cebc2d324571b38fa835130036bbbb85c41fa7f1db231936a42384/commitizen-tools/commitizen/issues/845 |
| og:image:alt | Description When generating changelog, get_version_tags function from commitizen/changelog.py is validating existing tags as if they were version names with no additional text on them. This behavio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | josuerzslzr |
| 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