-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version_files not working #1369
Comments
Hello Edit In a situation where I have set the cz.toml configuration file in the root folder
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "$version"
version_scheme = "semver"
version = "1.6.5-b23"
update_changelog_on_bump = false
major_version_zero = false
annotated_tag = false
version_files = [
"package.json:version",
"src/package.json:version",
"src/pyproject.toml:version"
] Another solution was to have pyproject.toml (or the appropriate manifest for configuration) in the root folder, which contained only information about the version [tool.poetry]
version = "1.6.5-b23" cz by default searches for the location in search of the manifest file. |
thank you for solving the problem. I will try this later. |
Hey, sorry for the late reply. may I know what the format of
it needs to be in the same line like
if they're set in the version_file, we do not detect |
Description
I'm using commitizen in a expo + react-native project
I do cz init and make a .cz.json like this
btw I select
commitizen(default)
notnpm
in source of the versionthen I do
cz commit
andcz bump
everything finish
version in .cz.json did update
but version in package.json and app.json not update
I'm not sure is it a bug or not,
maybe is something I missed in configuration?
or is a syntax error?
Steps to reproduce
cz init
..cz.json
cz_conventional_commits(default)
commitizen(default)
Y (latest tag)
semver
n (correct tag format)
test-$version
Y (auto changelog)
enter (with no hooks)
version_files
in .cz.jsoncz bump
Current behavior
after I setting
package.json:version
andapp.json:expo.version
I think these 2 files will update the correct version
same as the version in .cz.json
but not
Desired behavior
I want these 3 files update with same and correct version
Screenshots
No response
Environment
Commitizen Version: 4.4.1
Python Version: 3.13.2 (main, Feb 4 2025, 14:51:09) [Clang 16.0.0 (clang-1600.0.26.6)]
Operating System: Darwin
The text was updated successfully, but these errors were encountered: