Closed
Description
Description
When using a custom version provider that changes some arbitrary file defined in the version provider itself, this file is not added to git on a cz bump
.
Only files defined within version_files
are added. However having to specify the file that is being changed within the version provider also inside version_files
may lead to problems.
Steps to reproduce
- Specify a version provider, e.g.
commitizen_lrplugin
orcommitizen_ruby
(without specifying the actual version file inversion_files
- bump the version with
cz bump
- run
git status
- see that the version file has not been committed.
Current behavior
The file with version number changed by the version provider is not added to the bump commit.
Desired behavior
The file with version number changed by the version provider should be automatically added to the bump commit.
Screenshots
No response
Environment
Commitizen Version: 3.25.0
Python Version: 3.12.3 (main, Apr 16 2024, 11:43:44) [Clang 15.0.0 (clang-1500.1.0.2.5)]
Operating System: Darwin