Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: commitizen-tools/commitizen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.16.1
Choose a base ref
...
head repository: commitizen-tools/commitizen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.16.2
Choose a head ref
  • 2 commits
  • 6 files changed
  • 4 contributors

Commits on May 15, 2026

  1. fix(tags): widen prerelease and devrelease tag regexes for SemVer2 (#…

    …1972)
    
    * fix(tags): widen prerelease and devrelease tag regexes
    
    The tag regex helpers in `commitizen/defaults.py::get_tag_regexes` only
    matched PEP-440-style prereleases (`\w+\d+` -- no dot). When users
    configure `version_scheme = "semver2"` and a custom `tag_format`
    that includes `\`, commitizen itself produces tags like
    `0.0-2rc.0` (with a literal dot in the SemVer2 prerelease segment),
    but those tags are then rejected by `TagRules.is_version_tag` -- so
    the next `cz bump --prerelease` fails with `No tag found to do an
    incremental changelog` and `cz changelog` warns `Invalid version
    tag: '0.0-2rc.0' does not match any configured tag format`.
    
    Widen the prerelease regex to `\w+(?:\.\w+)*` so it accepts both
    `rc0` (PEP-440) and `rc.0` / `alpha.beta.1` (SemVer2).
    
    Also widen the devrelease regex to `\.?dev\d+` so users substituting
    `\` directly in a `tag_format` (without the leading
    dot) are recognised on the way back -- companion to the substitution
    fix in #1615.
    
    Closes #1614
    
    Co-authored-by: Copilot <[email protected]>
    
    * test(tags): add devrelease round-trip regression for #1614
    
    Cover the optional-leading-dot behavior of the widened devrelease regex by exercising TagRules.is_version_tag / extract_version on both '...dev1' and '....dev1' tag forms with a custom tag_format that includes ${devrelease}.
    
    Co-authored-by: Copilot <[email protected]>
    
    ---------
    
    Co-authored-by: Copilot <[email protected]>
    Co-authored-by: Tim Hsiung <[email protected]>
    3 people authored May 15, 2026
    Configuration menu
    Copy the full SHA
    c6b8c44 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    953e1ba View commit details
    Browse the repository at this point in the history
Loading