question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(Optional?) support for annotated tags

See original GitHub issue

Description

Currently, lightweight tags are generated by cz bump. This means you have to remember to push the tag separately from the commit, and also means you can’t use --follow-tags.

Possible Solution

I did this in my clone, but I genuinely don’t know if it’s anything more than a hack:

I changed this line from c = cmd.run(f"git tag {tag}") to c = cmd.run(f"git tag -a -m '{tag}' {tag}")

DISCLAIMER: I wouldn’t know Python if it ran me over in a bus. But it seemed to work!

Additional context

N/A

Related Issue

I didn’t find anything related.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
clilescommented, Jan 15, 2021

@Woile - To help speed this up (to maybe days instead of weeks), I went ahead and looked at #272 and “adopted” it for #332.

0reactions
SpokeyWheelercommented, Jan 25, 2021

Awesome! Thank you so much! 🎉🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git - Tagging - Git SCM
Just type git tag (with optional -l or --list ):. $ git tag v1.0 v2.0 ... Git supports two types of tags: lightweight...
Read more >
Support for Annotated Tags · Issue #207 - GitHub
Request support of annotated tags are a heavily-used git feature and part of core: Create tag only allows one-line input for tag name;...
Read more >
What is the difference between an annotated and unannotated ...
Annotated tags are meant for release while lightweight tags are meant for private or temporary object labels. And certain behaviors do differentiate between ......
Read more >
Annotated and Lightweight Git Tags | HackerNoon
Annotated tags store extra metadata such as author name, release notes, tag-message, and date as full objects in the Git database. All this...
Read more >
Create annotated tags in the Release CLI (#62) · Issues - GitLab
With this update, you can now add an optional tag-message parameter to create an annotated tag when creating a release.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found