Uh oh!
There was an error while loading. Please reload this page.
Add custom tag message - #631
Conversation
Lee-W
commented
Dec 29, 2022
I like
This should have been solved. Let me rebase your branch and see how it works. |
Lee-W
commented
Dec 29, 2022
Hi @LuisHenri , |
Codecov ReportAttention:
📢 Thoughts on this report? Let us know!. |
LuisHenri
commented
Dec 30, 2022
Hey @Lee-W, |
Uh oh!
There was an error while loading. Please reload this page.
frerksaxen
commented
Jun 7, 2023
I would really love to see this feature :) |
LuisHenri
commented
Jul 21, 2023
@Lee-W is something else needed still? |
Lee-W
commented
Jul 21, 2023
Hi @LuisHenri , sorry for the late review; I'm out of bandwidth these days. But I planned to take a look at a few PRs tomorrow. If you can rebase this PR and mention me, I'll take a look tomorrow. Thanks! |
LuisHenri
commented
Jul 25, 2023
@Lee-W Sorry for the delay. I'm done. |
Lee-W
commented
Jul 25, 2023
Hi @LuisHenri , instead of merging main branch, we prefer rebasing. You can do so through |
3716b1b to
c064be5CompareLuisHenri
commented
Jul 25, 2023
@Lee-W Thanks for the advice! What about now? :) |
9d88ad3 to
dead382CompareLee-W
commented
Jul 26, 2023
@LuisHenri perfect! I'll try to take a deeper look this weekend. |
Lee-W
left a comment
There was a problem hiding this comment.
Hi @LuisHenri , thanks for your contribution. the change looks good to me!
@woile I'm planning on merging this one these days. Let me know if you want to take a deeper look
Uh oh!
There was an error while loading. Please reload this page.
woile
commented
Jul 30, 2023
Is it possible to add a message to a light tag? If not, should we throw an error to inform the user? |
Lee-W
commented
Aug 20, 2023
@woile According to https://git-scm.com/book/en/v2/Git-Basics-Tagging, it seems we're not able to do that for a light tag |
| _opt = f"-s {tag} -m" | ||
| c = cmd.run(f"git tag {_opt} {tag}") | ||
| c = cmd.run(f'git tag {_opt} "{tag if _opt == "" or msg is None else msg}"') |
There was a problem hiding this comment.
@woile do you mean we should add a warning here to let the users know if they're using this feature, they're actually creating annotated tag?
To create a lightweight tag, don’t supply any of the -a, -s, or -m options, just provide a tag name:
https://git-scm.com/book/en/v2/Git-Basics-Tagging
not sure whether my understanding is correct
There was a problem hiding this comment.
I see, maybe a comment there explaining that. I didn't know that if you provide a message it automatically becomes an annotated tag.
There was a problem hiding this comment.
@woile I just added the comment and resolved the conflict. Could you please take a look? I think we're pretty close to merge this one :)
cc @noirbizarre
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
23244b8 to
976c2b2Comparefrerksaxen
commented
Nov 20, 2023
@Lee-W |
Lee-W
commented
Dec 3, 2023
Something like the following works git commit -m "first linesecond linethird line" |
Lee-W
commented
Dec 3, 2023
@woile@noirbizarre I'm planning on merging this one today. Please let me know if you want to take a look. Thanks! |
Description
According to #558, I implemented a custom tag message for annotated tags.
Right now, the annotated tag is given as "tag_name" with its message as "tag_name" as well. It might be nice to have custom tag messages, for example, to add the features added on that tag.
The idea is a new argument to bump with the tag_message,
Checklist
./scripts/formatand./scripts/testlocally to ensure this change passes linter check and testExpected behavior
Running the following commands will create an annotated tag with "a message" as the message of the tag.
Steps to Test This Pull Request
cz bump -atm "a message"git tag -l --format='%(contents:subject)' <the-created-tag-name>'a message'Additional context
Based on Issue #558
Open questions:
--annotated-tag-messageor as--annotated-tag-msgto keep it short?