add --delete-tag to tea release delete #256

Closed
opened 2020-11-26 22:07:55 +00:00 by hpodhaisky · 2 comments

Creating a release creates a tag, but when I delete that release with

tea release delete -r tagname

the tag "tagname" is still there (but the files of the release are deleted as expected). How can I delete that tag with tea?

Note, that deleting the release in the gitea web frontend does delete the tag as well.

Creating a release creates a tag, but when I delete that release with `tea release delete -r tagname ` the tag "tagname" is still there (but the files of the release are deleted as expected). How can I delete that tag with `tea`? Note, that deleting the release in the gitea web frontend does delete the tag as well.
Member

Tags are a git feature, and tea can't tell if a tag was already present or created by tea release create, so it doesnt delete it.

To remove the tag, just use git:

git push --delete origin $TAG
Tags are a git feature, and `tea` can't tell if a tag was already present or created by `tea release create`, so it doesnt delete it. To remove the tag, just use git: ``` git push --delete origin $TAG ```
noerw added the
kind
question
label 2020-11-26 22:12:44 +00:00
Author

Thank you noerw, this helps me to understand why it is not possible.

Unfortunately, I using tea in a git hook, hence I cannot push easily.

I can use curl to execute https://try.gitea.io/api/swagger#/repository/repoDeleteReleaseTag but using tea for this would be way more convenient. I was seeking an option like "--delete-tag" when deleting a release.

Thank you noerw, this helps me to understand why it is not possible. Unfortunately, I using `tea` in a git hook, hence I cannot push easily. I can use curl to execute https://try.gitea.io/api/swagger#/repository/repoDeleteReleaseTag but using tea for this would be way more convenient. I was seeking an option like "--delete-tag" when deleting a release.
noerw added
kind
enhancement
and removed
kind
question
labels 2020-11-26 23:03:01 +00:00
noerw changed title from deleting a release does not delete the tag to add --delete-tag to `tea release delete` 2020-11-26 23:03:46 +00:00
noerw added the
status/blocked
label 2020-12-07 00:13:17 +00:00
6543 added the
upstream/sdk
label 2020-12-07 00:21:51 +00:00
6543 removed the
status/blocked
upstream/sdk
labels 2020-12-09 18:11:17 +00:00
6543 closed this issue 2020-12-09 21:51:07 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/tea#256
No description provided.