Cant delete a realease without deleting a tag #120

Closed
opened 2025-11-02 03:09:50 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @couling on GitHub (Dec 12, 2016).

There is a strong connection between tags and releases in Gitea. When you create a release gitea also creates a tag if the tag name doesn't already exist. When you delete a release it also deletes the tag.

This has two main flaws:

  • It's easy to create a tag when you intended to reuse one (or visa versa).
  • It's impossible to delete a release without deleting the tag.

Suggested enhancements to resolve this:

  • Option to not delete a tag while deleting release
  • Indication on create release screen to show when an existing tag is being used
  • Link from releases screen to change a regular tag into a release
Originally created by @couling on GitHub (Dec 12, 2016). There is a strong connection between tags and releases in Gitea. When you create a release gitea also creates a tag if the tag name doesn't already exist. When you delete a release it also deletes the tag. This has two main flaws: - It's easy to create a tag when you intended to reuse one (or visa versa). - It's impossible to delete a release without deleting the tag. Suggested enhancements to resolve this: - Option to *not* delete a tag while deleting release - Indication on create release screen to show when an existing tag is being used - Link from releases screen to change a regular tag into a release
GiteaMirror added the type/bug label 2025-11-02 03:09:50 -06:00
Author
Owner

@bkcsoft commented on GitHub (Dec 12, 2016):

@tboerger more of a feature/enhancement right?

@bkcsoft commented on GitHub (Dec 12, 2016): @tboerger more of a feature/enhancement right?
Author
Owner

@couling commented on GitHub (Dec 13, 2016):

I'd say 90% Feature, 10% Bug.

The bug element is that, it seems wrong to be left with no tag after the following:

  1. Add tag in git
  2. Create release in Gitea
  3. Delete Gitea

That is to say that creating and deleting a release shouldn't delete a pre-existing tag. I'm sure there are some who would argue "working as designed" though.

@couling commented on GitHub (Dec 13, 2016): I'd say 90% Feature, 10% Bug. The bug element is that, it seems wrong to be left with no tag after the following: 1. Add tag in git 1. Create release in Gitea 1. Delete Gitea That is to say that creating and deleting a release shouldn't delete a pre-existing tag. I'm sure there are some who would argue "working as designed" though.
Author
Owner

@tboerger commented on GitHub (Dec 13, 2016):

@bkcsoft bug and feature at the same time, at least in my opinion.

@tboerger commented on GitHub (Dec 13, 2016): @bkcsoft bug and feature at the same time, at least in my opinion.
Author
Owner

@tboerger commented on GitHub (Dec 13, 2016):

A release is bound to a tag, but a tag can also totally fine exist without a release

@tboerger commented on GitHub (Dec 13, 2016): A release is bound to a tag, but a tag can also totally fine exist without a release
Author
Owner

@lunny commented on GitHub (Dec 27, 2016):

So we can simply don't delete the tag when deleting a release! Tags could be delete via git or Gitea API, so that we could not provide ui to delete it currently.

@lunny commented on GitHub (Dec 27, 2016): So we can simply don't delete the tag when deleting a release! Tags could be delete via git or Gitea API, so that we could not provide ui to delete it currently.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#120