Title: Using --allow-no-commit on bump doesn't work (when updating CHANGELOG) · Issue #1866 · commitizen-tools/commitizen · GitHub
Open Graph Title: Using --allow-no-commit on bump doesn't work (when updating CHANGELOG) · Issue #1866 · commitizen-tools/commitizen
X Title: Using --allow-no-commit on bump doesn't work (when updating CHANGELOG) · Issue #1866 · commitizen-tools/commitizen
Description: Description python: 3.13.2 commitizen: 4.13.7 [tool.commitizen] name = "cz_customize" version_provider = "pep621" version_scheme = "semver2" annotated_tag = true update_changelog_on_bump = true changelog_merge_prerelease = true prereleas...
Open Graph Description: Description python: 3.13.2 commitizen: 4.13.7 [tool.commitizen] name = "cz_customize" version_provider = "pep621" version_scheme = "semver2" annotated_tag = true update_changelog_on_bump = true cha...
X Description: Description python: 3.13.2 commitizen: 4.13.7 [tool.commitizen] name = "cz_customize" version_provider = "pep621" version_scheme = "semver2" annotated_tag = true updat...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1866
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using --allow-no-commit on bump doesn't work (when updating CHANGELOG)","articleBody":"### Description\n\n- python: 3.13.2\n- commitizen: 4.13.7\n\n```\n[tool.commitizen]\nname = \"cz_customize\"\nversion_provider = \"pep621\"\nversion_scheme = \"semver2\"\nannotated_tag = true\nupdate_changelog_on_bump = true\nchangelog_merge_prerelease = true\nprerelease_offset = 1\npre_bump_hooks = [\"./add-issue-links-to-changelog.sh\"]\n```\n\nIt seems that I am unable to **bump** if there are no changes _and_ I want to update the CHANGELOG. In spite of attempting to ignore the fact there are no changes by using `--allow-no-commit`, when I try and produce a new pre-release (e.g. with `--prerelease rc`) I get **No commits found**.\n\nIf I do not set `update_changelog_on_bump = true` then it appears to work.\n\nBut it is perfectly reasonable to: -\n\n1. Create a new release when there are no changes in the repository (i.e. going from **beta** to **rc**)\n2. Also alter the **CHANGELOG** (to indicate there has been a release but nothing has changed)\n\nIn summary ... `--allow-no-commit` should perform as advertised ... allow a release regardless of changes.\n\n\u003e See discussion https://github.com/commitizen-tools/commitizen/discussions/1865\n\n### Steps to reproduce\n\nHere's my config `pyproject.toml` commitizen configuration: -\n\n```\n[tool.commitizen]\nname = \"cz_customize\"\nversion_provider = \"pep621\"\nversion_scheme = \"semver2\"\nannotated_tag = true\nupdate_changelog_on_bump = true\nchangelog_merge_prerelease = true\nprerelease_offset = 1\npre_bump_hooks = [\"./add-issue-links-to-changelog.sh\"]\n```\n\n### Bump a release (when there are changes, creating a beta release)\n\n```\ncz bump --allow-no-commit --prerelease beta`\n```\n\n\u003e Let's assume this creates `4.5.0-beta.5`\n\n### Do it again (for a release candidate)\n\n```\ncz bump --allow-no-commit --prerelease rc`\n```\nIn this case I get told...\n\n```\nbump: version 4.5.0-beta.5 → 4.5.0-rc.1\ntag to create: 4.5.0-rc.1\nincrement detected: PATCH\n\nNo commits found\n```\n\n\n### Current behavior\n\nI'm told **No commits found** even though I have used `--allow-no-commit`\n\n### Desired behavior\n\nUsing `--allow-no-commit` should never result in the error **No commits found**\n\n### Screenshots\n\n_No response_\n\n### Environment\n\nCommitizen Version: 4.13.7\nPython Version: 3.13.2 (v3.13.2:4f8bb3947cf, Feb 4 2025, 11:51:10) [Clang 15.0.0 (clang-1500.3.9.4)]\nOperating System: Darwin\n","author":{"url":"https://github.com/alanbchristie","@type":"Person","name":"alanbchristie"},"datePublished":"2026-02-11T12:51:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1866/commitizen/issues/1866"}
| 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:4ed076ad-74d2-141d-2e5c-dbfe3acbfd47 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF9E:2FDF33:107524F:1751C8D:6A606E46 |
| html-safe-nonce | 937988920a0a3371d386f74352a8e1beaa7c3a80e2500cac59d530340d9dc8b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjlFOjJGREYzMzoxMDc1MjRGOjE3NTFDOEQ6NkE2MDZFNDYiLCJ2aXNpdG9yX2lkIjoiNTM2NDMxODIxNzgwNDIxMzgzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | df1f056ebe9d3b6a1da06e403ce0a79636c777a3ccd71b84323f2a797197e7f0 |
| hovercard-subject-tag | issue:3926395333 |
| 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/1866/issue_layout |
| twitter:image | https://opengraph.githubassets.com/72a10b3b6206c8b611e657d39e2c479386fc0cd46eee2e694e68edda36b0b1ae/commitizen-tools/commitizen/issues/1866 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/72a10b3b6206c8b611e657d39e2c479386fc0cd46eee2e694e68edda36b0b1ae/commitizen-tools/commitizen/issues/1866 |
| og:image:alt | Description python: 3.13.2 commitizen: 4.13.7 [tool.commitizen] name = "cz_customize" version_provider = "pep621" version_scheme = "semver2" annotated_tag = true update_changelog_on_bump = true cha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alanbchristie |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| 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 | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width