-
-
Notifications
You must be signed in to change notification settings - Fork 287
refactor(git): simplify tag logic #1507
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: refactors
Are you sure you want to change the base?
refactor(git): simplify tag logic #1507
Conversation
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 nitpick
commitizen/git.py
Outdated
|
||
# according to https://git-scm.com/book/en/v2/Git-Basics-Tagging, | ||
# we're not able to create lightweight tag with message. | ||
# by adding message, we make it a annotated tags | ||
return cmd.run(f'git tag {_opt} "{tag if _opt == "" or msg is None else msg}"') | ||
option = "-s" if signed else "-a" |
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.
worth mentione the else case if for annotated
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.
added a comment.
f945d2b
to
aece9a5
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## refactors #1507 +/- ##
=============================================
- Coverage 97.87% 97.86% -0.01%
=============================================
Files 57 57
Lines 2677 2675 -2
=============================================
- Hits 2620 2618 -2
Misses 57 57
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:
|
b5b5bca
to
32de613
Compare
32de613
to
a505d5b
Compare
Description
Checklist