Title: bump_map in pyproject.toml seems to be ignored · Issue #1728 · commitizen-tools/commitizen · GitHub
Open Graph Title: bump_map in pyproject.toml seems to be ignored · Issue #1728 · commitizen-tools/commitizen
X Title: bump_map in pyproject.toml seems to be ignored · Issue #1728 · commitizen-tools/commitizen
Description: Description bump_map in pyproject.toml seems to be ignored. When I try to set "feat" to patch it still does consider it as a minor increment, and keep ignoring docs as an valid increment. If I modify bump_pattern then the filter appear c...
Open Graph Description: Description bump_map in pyproject.toml seems to be ignored. When I try to set "feat" to patch it still does consider it as a minor increment, and keep ignoring docs as an valid increment. If I modi...
X Description: Description bump_map in pyproject.toml seems to be ignored. When I try to set "feat" to patch it still does consider it as a minor increment, and keep ignoring docs as an valid increment....
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1728
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bump_map in pyproject.toml seems to be ignored","articleBody":"### Description\n\n`bump_map` in pyproject.toml seems to be ignored. When I try to set \"feat\" to patch it still does consider it as a minor increment, and keep ignoring docs as an valid increment. \n\nIf I modify `bump_pattern` then the filter appear correctly so I suppose that the configuration are well read by the parser. The configuration for the changelog is correctly interpreted.\n\nP.S. : Thanks for your work. I think I'm the problem with this issue, but I failed to know how...\n\n### Steps to reproduce\n\n1. Init a repo git (git init \u0026 uv init)\n2. Set the pyproject.toml \n```toml\n[project]\nname = \"error-commitizen\"\nversion = \"0.1.0\"\ndescription = \"Replicate bug in commitizen ignoring pyproject.toml:bump_map configuration\"\nreadme = \"README.md\"\nrequires-python = \"\u003e=3.14\"\ndependencies = [\n \"commitizen\u003e=4.10.1\",\n]\n\n\n[tool.commitizen]\nname = \"cz_customize\"\nversion_provider = \"pep621\" # Use version from pyproject.toml\nupdate_changelog_on_bump = true\nmajor_version_zero = true\nchangelog_incremental = true\nversion_files = [\n \"pyproject.toml:version\",\n]\nallowed_prefixes = [\n \"Draft:\",\n \"Merge\",\n \"Revert\",\n \"Pull request\",\n \"fixup!\",\n \"squash!\",\n \"amend!\"\n]\nbreaking_change_exclamation_in_title = true\ngpg_sign = false\nannotated_tag = true\n\n\n[tool.commitizen.customize]\n# Commit message configuration\nschema_pattern = \"^(feat|fix|ci|chore|refactor|docs|test|perf|build|bump)(\\\\(#\\\\d+\\\\))?(!)?: ([A-Z].*)$\"\n\n# Bumping configuration =\u003e The bump_map DOES NOT WORK...\nbump_pattern = \"^(feat|fix|ci|chore|refactor|docs|test|perf|build|bump)\"\nbump_map = {feat = \"PATCH\", docs = \"PATCH\"}\n\n```\n3. Create following git commits :\n\u003cimg width=\"458\" height=\"72\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/94abeab5-0d5a-4748-bf4c-672f1b4a848c\" /\u003e\n\n4. Run `uv run cz bump --dry-run`\n\u003cimg width=\"543\" height=\"267\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/35a1df59-2e3d-4466-ae5d-8474087daccf\" /\u003e\n\n### Current behavior\n\nA **minor** increment is operated.\n\n### Desired behavior\n\nA **patch** increment should be operated.\n\n### Screenshots\n\n_No response_\n\n### Environment\n\n`uv run cz version --report`\n\nCommitizen Version: 4.10.1\nPython Version: 3.14.2 (main, Dec 9 2025, 19:03:14) [MSC v.1944 64 bit (AMD64)]\nOperating System: Windows","author":{"url":"https://github.com/JeannotJeannot","@type":"Person","name":"JeannotJeannot"},"datePublished":"2025-12-15T13:34:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1728/commitizen/issues/1728"}
| 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:92d513a8-36a9-887e-8835-e918dd6f9dd4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97B2:3C7A3:2A21E8C:3AF46B2:6A4F632A |
| html-safe-nonce | 1f5cfd967caa52c343458ff1eed0a548ecf30ea6a7259e0e5708c9e2842fa0c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0IyOjNDN0EzOjJBMjFFOEM6M0FGNDZCMjo2QTRGNjMyQSIsInZpc2l0b3JfaWQiOiIxODEyODE3NDM1ODQ3MjU0ODI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 421b44156ca26a5677986e63abd89a63010b72e52b6388cefbce5ba38207255a |
| hovercard-subject-tag | issue:3730484799 |
| 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/1728/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c407886242f7c320647f1849437ff828554b1d17f94c658722fcfce889b48738/commitizen-tools/commitizen/issues/1728 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c407886242f7c320647f1849437ff828554b1d17f94c658722fcfce889b48738/commitizen-tools/commitizen/issues/1728 |
| og:image:alt | Description bump_map in pyproject.toml seems to be ignored. When I try to set "feat" to patch it still does consider it as a minor increment, and keep ignoring docs as an valid increment. If I modi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JeannotJeannot |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width