-
-
Notifications
You must be signed in to change notification settings - Fork 300
fix(bump): extract option validation and new version resolution #1646
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: v4-10-1
Are you sure you want to change the base?
fix(bump): extract option validation and new version resolution #1646
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v4-10-1 #1646 +/- ##
==========================================
Coverage ? 98.68%
==========================================
Files ? 60
Lines ? 2656
Branches ? 0
==========================================
Hits ? 2621
Misses ? 35
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Lee-W
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly good. one minor question
|
|
||
| if build_metadata and is_local_version: | ||
| raise NotAllowed("--local-version cannot be combined with --build-metadata") | ||
| # we create an empty PATCH increment for empty tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure whehter we documented this. If not, we should add it 🤔 but we could do that in the future
|
|
||
|
|
||
| @pytest.mark.usefixtures("tmp_commitizen_project") | ||
| def test_bump_get_next__manual_version_is_not_allowed(mocker: MockFixture): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this removed?
Changes
Relate #1643
NotAllowederror messages and raise it at the end of option validation process