Uh oh!
There was an error while loading. Please reload this page.
fix(#271): add annotated_tag option to bump - #272
Conversation
Codecov Report
@@ Coverage Diff @@## master #272 +/- ##
==========================================
+ Coverage 96.61% 96.62% +0.01%
==========================================
Files 33 33 Lines 915 919 +4 ==========================================
+ Hits 884 888 +4
Misses 31 31
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Uh oh!
There was an error while loading. Please reload this page.
woile
commented
Sep 23, 2020
Even if this were unrelated to the original issue (not triggering a workflow). I think it would be useful for traceability. An annotated tag adds:
I'll test how it could works, for What do you think @Lee-W ? |
Enable creation of annotated tags when bumping.
ad554a4 to
d2b0ebeCompare| bump_message = "release $current_version → $new_version [skip-ci]" | ||
| ``` | ||
| ### `annotated_tag` |
There was a problem hiding this comment.
for consistency, I'll suggest using --annotated_tag
| ### `annotated_tag` | ||
| Whether to create annotated tags or lightweight ones. | ||
There was a problem hiding this comment.
If my understand is correct, we can use cz bump -at and set it in config to achive it. If so, I'd suggest adding both usages here.
| }, | ||
| { | ||
| "name": ["--annotated-tag", "-at"], | ||
| "help": "create annotated tag instead of lightweight one", |
There was a problem hiding this comment.
Maybe we can change the help message to create an annotated tag (by default, commitizen creates lightweight tag)
| c = git.tag(new_tag_version) | ||
| c = git.tag( | ||
| new_tag_version, | ||
| annotated=self.bump_settings.get("annotated_tag", False) |
There was a problem hiding this comment.
to enhance readbility, I would suggest make self.bump_settings.get("annotated_tag", False) or or bool(self.config.settings.get("annotated_tag", False)) a variable. I read this line for a few times to understand
Lee-W
commented
Sep 24, 2020
Although I love this feature, I'm a bit against making it a default option. I'm not sure how common annotated tag is used in practice. |
woile
commented
Sep 24, 2020
Doing
I have the same concerns as you, not sure how used is in practice, spite of what the documentation says. |
Lee-W
commented
Sep 26, 2020
Got it. It makes more sense after reading it. I'm now neutral to make it as a default. |
woile
commented
Nov 11, 2020
Please remove the changes on |
woile
commented
Mar 5, 2021
This was already added |
Description
Create annotated tags, when bumping.
Checklist
./script/formatand./script/testlocally to ensure this change passes linter check and testExpected behavior
With
annotated_tagenabled commitizen will create annotated tag instead of lightweight ones.Steps to Test This Pull Request
Use
cz bump --annotated_tagorannotated_tag = 1in config fileAdditional context
maybe related to #261 ???