-
-
Notifications
You must be signed in to change notification settings - Fork 302
Feat/version info #1639
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?
Feat/version info #1639
Conversation
9a172d9 to
e77180b
Compare
e77180b to
df79339
Compare
|
how am I supposed to fix |
|
I usually use |
df79339 to
2fa851b
Compare
|
Fixed! 🤞🏻 |
2fa851b to
7ca2b16
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1639 +/- ##
==========================================
+ Coverage 97.33% 98.18% +0.85%
==========================================
Files 42 58 +16
Lines 2104 2706 +602
==========================================
+ Hits 2048 2657 +609
+ Misses 56 49 -7
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:
|
|
|
||
| try: | ||
| version_scheme = get_version_scheme(self.config.settings) | ||
| except VersionSchemeUnknown: |
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.
@Lee-W do you think I need this try/catch here? If get_version_scheme fails, then VersionSchemeUnknown would be propagated and properly displayed by commitizen_excepthook, right?
Description
Allow the ability to just print
majororminorfrom a version when usingcz version -p.This is useful, because under some scenarios, users may need just a chunk of the version. Example:
vXtag, whereXis the major, this tag is moved to the latest commit usually.Checklist
Code Changes
poetry alllocally to ensure this change passes linter check and testsDocumentation Changes
poetry doclocally to ensure the documentation pages renders correctlyExpected Behavior
cz version -p majorshould render the major part onlycz version -p minorshould render the minor part onlyCloses #1638