Title: changelog is not able to recognize tags for incremental changelog · Issue #1149 · commitizen-tools/commitizen · GitHub
Open Graph Title: changelog is not able to recognize tags for incremental changelog · Issue #1149 · commitizen-tools/commitizen
X Title: changelog is not able to recognize tags for incremental changelog · Issue #1149 · commitizen-tools/commitizen
Description: Description When I try to produce the incremental changelog, I receive this error: > cz changelog InvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60', '2024-05-17') InvalidVersion GitTag('utility/v0.1.2', '...
Open Graph Description: Description When I try to produce the incremental changelog, I receive this error: > cz changelog InvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60', '2024-05-17') I...
X Description: Description When I try to produce the incremental changelog, I receive this error: > cz changelog InvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1149
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"changelog is not able to recognize tags for incremental changelog","articleBody":"### Description\n\nWhen I try to produce the incremental changelog, I receive this error:\r\n```bash\r\n\u003e cz changelog\r\nInvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60', '2024-05-17')\r\nInvalidVersion GitTag('utility/v0.1.2', 'cb887f77eaca3ae2af4360a9451d18ec5414bdb6', '2024-05-16')\r\n```\r\n\r\nCommitizen is configured to work with poetry. See below the configuration:\r\n```toml\r\n[tool.commitizen]\r\nname = \"cz_conventional_commits\"\r\ntag_format = \"utility/v$version\"\r\nversion_scheme = \"semver2\"\r\nversion_provider = \"poetry\"\r\nupdate_changelog_on_bump = true\r\nchangelog_incremental = true\r\nmajor_version_zero = true\r\n```\r\n\r\nIf I run the bump command:\r\n\r\n```bash\r\n\u003e cz bump --dry-run\r\nbump: version 0.1.3 → 0.2.0 \r\ntag to create: utility/v0.2.0\r\nincrement detected: MINOR\r\n\r\nInvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60', '2024-05-17')\r\nInvalidVersion GitTag('utility/v0.1.2', 'cb887f77eaca3ae2af4360a9451d18ec5414bdb6', '2024-05-16')\r\nNo tag found to do an incremental changelog\r\n```\r\n\r\nIt looks like, it recognize current release version but it is not able to match the correct tag to generate incremental changelog\n\n### Steps to reproduce\n\ncz changelog\n\n### Current behavior\n\n```bash\r\n\u003e cz changelog\r\nInvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60', '2024-05-17')\r\nInvalidVersion GitTag('utility/v0.1.2', 'cb887f77eaca3ae2af4360a9451d18ec5414bdb6', '2024-05-16')\r\n```\n\n### Desired behavior\n\nTag is recognized and changelog is generated correctly\n\n### Screenshots\n\n_No response_\n\n### Environment\n\n```\r\n\u003e cz version\r\n3.25.0\r\n```\r\n\r\n```\r\n\u003e python --version\r\nPython 3.11.9\r\n```\r\n\r\n```\r\n\u003e python3 -c\"import platform; print(platform.system())\"\r\nWindows\r\n```\r\n\r\n```\r\n\u003e cz version --report\r\nCommitizen Version: 3.25.0\r\nPython Version: 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]\r\nOperating System: Windows\r\n```","author":{"url":"https://github.com/nos86","@type":"Person","name":"nos86"},"datePublished":"2024-05-30T09:53:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1149/commitizen/issues/1149"}
| 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:c8d02002-f48d-6582-c263-16fa813b2798 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9CC:A8C8D:C87D17:12281BD:6A4E4C6A |
| html-safe-nonce | 4c916ec51ae295803e8fb9d132faad4ebf3d2680500044e07a1bfcaeea80d126 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUNDOkE4QzhEOkM4N0QxNzoxMjI4MUJEOjZBNEU0QzZBIiwidmlzaXRvcl9pZCI6IjI0MTMxNDczMTQyNzkzMDQyOTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7ced45ed584f272d85130f268ebde0bd5fbd4a7d9957c7f56c2ef5ec1fdbe2ea |
| hovercard-subject-tag | issue:2325245603 |
| 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/1149/issue_layout |
| twitter:image | https://opengraph.githubassets.com/72e5ced4a0d026d4d70461686ffdb01840a95b01dac480f28fa2d706dc070658/commitizen-tools/commitizen/issues/1149 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/72e5ced4a0d026d4d70461686ffdb01840a95b01dac480f28fa2d706dc070658/commitizen-tools/commitizen/issues/1149 |
| og:image:alt | Description When I try to produce the incremental changelog, I receive this error: > cz changelog InvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60', '2024-05-17') I... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nos86 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | e8506f6d0538364886e3f0153c154c410965e70d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width