-
-
Notifications
You must be signed in to change notification settings - Fork 334
fix: bump command called changelog command with allow_no_commit=True,… #1868
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
0598e36
7d59bf4
820d73e
72403ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -43,6 +43,7 @@ class ChangelogArgs(TypedDict, total=False): | |||||
| extras: dict[str, Any] | ||||||
| export_template: str | ||||||
| during_version_bump: bool | None | ||||||
| allow_no_commit: bool # --allow-no-commit is still invalid in the changelog command | ||||||
|
||||||
| allow_no_commit: bool # --allow-no-commit is still invalid in the changelog command | |
| allow_no_commit: bool | None # Internal-only when invoked by bump; still not a direct changelog CLI flag. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1540,3 +1540,42 @@ def test_changelog_merge_preserves_header( | |||||
| out = changelog_path.read_text() | ||||||
|
|
||||||
| file_regression.check(out, extension=".md") | ||||||
|
|
||||||
|
|
||||||
| @pytest.mark.freeze_time("2025-01-01") | ||||||
| def test_bump_allow_no_commit_issue( | ||||||
| tmp_commitizen_project_initial, | ||||||
| util: UtilFixture, | ||||||
| ) -> None: | ||||||
| """Issue #1866: bump command called changelog command with allow_no_commit=True, but changelog command raised NoCommitsFoundError""" | ||||||
| tmp_commitizen_project = tmp_commitizen_project_initial(version="1.0.0") | ||||||
|
||||||
| tmp_commitizen_project = tmp_commitizen_project_initial(version="1.0.0") | |
| tmp_commitizen_project = tmp_commitizen_project_initial() |
Uh oh!
There was an error while loading. Please reload this page.