Title: fix(tags): widen prerelease and devrelease tag regexes for SemVer2 by bearomorphism · Pull Request #1972 · commitizen-tools/commitizen · GitHub
Open Graph Title: fix(tags): widen prerelease and devrelease tag regexes for SemVer2 by bearomorphism · Pull Request #1972 · commitizen-tools/commitizen
X Title: fix(tags): widen prerelease and devrelease tag regexes for SemVer2 by bearomorphism · Pull Request #1972 · commitizen-tools/commitizen
Description: Description
Closes #1614.
Why
When a project uses version_scheme = "semver2" together with a custom tag_format that includes ${prerelease} — for example "${major}.${minor}-${patch}${prerelease}" — the tags that commitizen creates (e.g. 0.0-2rc.0) cannot be recognised on the next invocation. Every subsequent cz bump --prerelease rc prints Invalid version tag: '0.0-2rc.0' does not match any configured tag format and then exits with code 16, making it impossible to chain prerelease bumps without manually running cz changelog in between.
The culprit is the prerelease entry in get_tag_regexes (commitizen/defaults.py:159). The old pattern r"(?P
Open Graph Description: Description Closes #1614. Why When a project uses version_scheme = "semver2" together with a custom tag_format that includes ${prerelease} — for example "${major}.${minor}-${patch}${...
X Description: Description Closes #1614. Why When a project uses version_scheme = "semver2" together with a custom tag_format that includes ${prerelease} — for example "${major}.${minor...
Opengraph URL: https://github.com/commitizen-tools/commitizen/pull/1972
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a9d47761-6bd8-fb84-f9b7-f3a920c14a7b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8536:34DA5A:229D1D4:2FF0E0A:6A4F4615 |
| html-safe-nonce | 22ce4637ca8cffb7fd865bfac0b5e126c7c9d9641b592ac5fbce057a7b7954e3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTM2OjM0REE1QToyMjlEMUQ0OjJGRjBFMEE6NkE0RjQ2MTUiLCJ2aXNpdG9yX2lkIjoiNTEwNzExMTQzODQwMjQwNTkwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7adcc0d8343c4cb4e61c84d5935d8c9c680255de7531f06053bc954973b6711e |
| hovercard-subject-tag | pull_request:3654718626 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/commitizen-tools/commitizen/pull/1972/files |
| twitter:image | https://avatars.githubusercontent.com/u/26526132?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/26526132?s=400&v=4 |
| og:image:alt | Description Closes #1614. Why When a project uses version_scheme = "semver2" together with a custom tag_format that includes ${prerelease} — for example "${major}.${minor}-${patch}${... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width