Title: version_files not working · Issue #1369 · commitizen-tools/commitizen · GitHub
Open Graph Title: version_files not working · Issue #1369 · commitizen-tools/commitizen
X Title: version_files not working · Issue #1369 · commitizen-tools/commitizen
Description: Description I'm using commitizen in a expo + react-native project I do cz init and make a .cz.json like this { "commitizen": { "name": "cz_conventional_commits", "tag_format": "test-$version", "version_scheme": "semver", "version": "3.2....
Open Graph Description: Description I'm using commitizen in a expo + react-native project I do cz init and make a .cz.json like this { "commitizen": { "name": "cz_conventional_commits", "tag_format": "test-$version", "ver...
X Description: Description I'm using commitizen in a expo + react-native project I do cz init and make a .cz.json like this { "commitizen": { "name": "cz_conventional_commits", &...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1369
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"version_files not working","articleBody":"### Description\n\nI'm using commitizen in a expo + react-native project\nI do cz init and make a .cz.json like this\n```json\n{\n \"commitizen\": {\n \"name\": \"cz_conventional_commits\",\n \"tag_format\": \"test-$version\",\n \"version_scheme\": \"semver\",\n \"version\": \"3.2.4\",\n \"update_changelog_on_bump\": true,\n \"version_files\": [\n \"package.json:version\",\n \"app.json:expo.version\"\n ]\n }\n}\n```\nbtw I select `commitizen(default)` not `npm` in source of the version\n\nthen I do `cz commit` and `cz bump`\neverything finish\nversion in .cz.json did update\nbut version in package.json and app.json not update\n\nI'm not sure is it a bug or not,\nmaybe is something I missed in configuration?\nor is a syntax error?\n\n### Steps to reproduce\n\n1. run `cz init`.\n2. select \n - `.cz.json`\n - `cz_conventional_commits(default)`\n - `commitizen(default)`\n - `Y (latest tag)`\n - `semver`\n - `n (correct tag format)`\n - `test-$version`\n - `Y (auto changelog)`\n - `enter (with no hooks)`\n3. manually setting `version_files` in .cz.json\n4. create new commit\n5. run `cz bump`\n### Current behavior\n\nafter I setting `package.json:version` and `app.json:expo.version`\nI think these 2 files will update the correct version\nsame as the version in .cz.json\nbut not\n\n### Desired behavior\n\nI want these 3 files update with same and correct version\n- package.json (version)\n- app.json (expo.version)\n- .cz.json (version)\n\n### Screenshots\n\n_No response_\n\n### Environment\n\nCommitizen Version: 4.4.1\nPython Version: 3.13.2 (main, Feb 4 2025, 14:51:09) [Clang 16.0.0 (clang-1600.0.26.6)]\nOperating System: Darwin","author":{"url":"https://github.com/WinnieS0728","@type":"Person","name":"WinnieS0728"},"datePublished":"2025-03-13T06:21:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1369/commitizen/issues/1369"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5f49c302-106c-6647-c937-ee6fd4a67891 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A1C:8B50E:BB94302:F31CFF1:6976F4CC |
| html-safe-nonce | be78b915474ee5f9b68139c4f73230a2afc39fced7c74425804e63be000c61f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTFDOjhCNTBFOkJCOTQzMDI6RjMxQ0ZGMTo2OTc2RjRDQyIsInZpc2l0b3JfaWQiOiIzMzgyNDA2ODM0NjU0OTk5NzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dfed1d8924f1744ab1efe3712400407b18af4e8142a007e015b652f84e403a28 |
| hovercard-subject-tag | issue:2915991369 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen/1369/issue_layout |
| twitter:image | https://opengraph.githubassets.com/673ea7c576e15fda853e809c2515f6354418f34c44eddfbb781aaad126e313a5/commitizen-tools/commitizen/issues/1369 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/673ea7c576e15fda853e809c2515f6354418f34c44eddfbb781aaad126e313a5/commitizen-tools/commitizen/issues/1369 |
| og:image:alt | Description I'm using commitizen in a expo + react-native project I do cz init and make a .cz.json like this { "commitizen": { "name": "cz_conventional_commits", "tag_format": "test-$version", "ver... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | WinnieS0728 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 106127589 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 106127589 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width