You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(version): add MANUAL_VERSION, --next and --patch to version command (#1724)
* feat(version): add MANUAL_VERSION, --next, and --patch to version command
Rebased onto master: keep --tag with TagRules alongside the new flags.
- Merge version command logic for manual/next/patch with tag normalization
- Refresh help regression fixtures and cz version --help SVG
- Fix TagRules.find_tag_for annotation (VersionProtocol)
Closes#1679
Made-with: Cursor
* fix(test): align cz version --help fixtures per Python minor version
Argparse wraps the usage line differently before vs after Python 3.13, so
separate regression baselines are required for CI matrix jobs.
Made-with: Cursor
* fix(version): improve coverage, UX, and docs for cz version
- Rename VersionIncrement.safe_cast to from_value; add tests
- Map NONE to no bump; user-facing error for USE_GIT_COMMITS
- Add tests for patch component, unknown scheme, and default output
- Clarify get_version_scheme Protocol check; fix TagRules docstring example
- Document MANUAL_VERSION, --next, and --patch; refresh help fixtures/SVG
Made-with: Cursor
* refactor(version_schemes): restore Version and VersionScheme type aliases
Re-export VersionScheme = type[VersionProtocol] and Version = VersionProtocol
for downstream custom schemes and parity with the public API on master.
Import TypeAlias at runtime alongside Increment/Prerelease.
Made-with: Cursor
* fix: address review comments on version command PR
- Parametrize invalid combination tests (major/minor/patch/tag without project)
- Fix version scheme validation to use hasattr check instead of broken
isinstance/issubclass on Protocol with non-method members
- Format test file with ruff
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* docs: add TODO comment for USE_GIT_COMMITS future work (#1678)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments