feat(bump): add --version-files-only and deprecate --files-only by 2509abhi · Pull Request #1659 · commitizen-tools/commitizen
This PR implements the changes requested in #1658.
Implements the historical recommendations described in #1640 (comment).
New Feature
- Added a new CLI flag:
--version-files-only - Updates only the files in
version_fileswithout creating a commit or tag
Deprecation
- Marked
--files-onlyas deprecated (to be removed in v5) - Added CLI and docs deprecation notices
Configuration Handling
- Supported legacy config key
files_onlyif present - Ensured backward compatibility until v5
Documentation Updates
- Updated bump.md to document
--version-files-only - Added deprecation note for
--files-only - Added historical note about old
files→version_files
Closes #1658
pls run though our pr checklist (you should see it upon PR creation) to pass the PR pipeline.
just quickly scanned through your changes, looks like you didn't run poetry lint or poetry format
All commit messages must meet our requirements. Run poetry all locally to identify any issues. Thanks :)
|
|
||
| create_file_and_commit("feat: another new feature") | ||
| testargs = ["cz", "bump", "--yes", "--files-only"] | ||
| testargs = ["cz", "bump", "--yes", "--files-only","--version-files-only"] |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| testargs = ["cz", "bump", "--yes", "--files-only","--version-files-only"] | |
| testargs = ["cz", "bump", "--yes", "--files-only", "--version-files-only"] |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also have --version-files-only cases
Lee-W
changed the base branch from
master
to
v4-11-0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters