The tag will disappear if a draft release has been created with it #9616

Closed
opened 2025-11-02 08:44:36 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @wolfogre on GitHub (Sep 26, 2022).

Description

In most cases, a draft release has no tag related to it, see https://github.com/go-gitea/gitea/issues/15058#issuecomment-803330458 .

However, if I did create a draft release with an existing tag, the tag will disappear.

Gitea Version

main@ec0a06e52

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

1. Push a tag, and everything is OK.

image

2. Create a draft release with the tag.

image

3. You can see the new draft release, but the tag is gone.

image image

4. Delete the draft release, and both the release and tag are gone.

image image

5. However, the tag actually exists.

image

Git Version

No response

Operating System

No response

How are you running Gitea?

a command-line.

Database

MySQL

Originally created by @wolfogre on GitHub (Sep 26, 2022). ### Description In most cases, a draft release has no tag related to it, see https://github.com/go-gitea/gitea/issues/15058#issuecomment-803330458 . However, if I did create a draft release with an existing tag, the tag will disappear. ### Gitea Version main@ec0a06e52 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ## 1. Push a tag, and everything is OK. <img width="1154" alt="image" src="https://user-images.githubusercontent.com/9418365/192240263-557147e4-2b6d-4af7-b8b8-edb409c0f662.png"> ## 2. Create a draft release with the tag. <img width="1174" alt="image" src="https://user-images.githubusercontent.com/9418365/192241185-8f02e40c-2bf8-4363-ab91-fc18fe9e8d41.png"> ## 3. You can see the new draft release, but the tag is gone. <img width="1160" alt="image" src="https://user-images.githubusercontent.com/9418365/192241683-83777fbe-a382-4581-8024-297c12c42678.png"> <img width="1163" alt="image" src="https://user-images.githubusercontent.com/9418365/192241808-4fd050f7-390b-453b-a7ad-84aba8567f6f.png"> ## 4. Delete the draft release, and both the release and tag are gone. <img width="1150" alt="image" src="https://user-images.githubusercontent.com/9418365/192242386-bf3a50e2-1739-4bf0-8e43-bf662e7b06f5.png"> <img width="1138" alt="image" src="https://user-images.githubusercontent.com/9418365/192242440-71bcd47a-04a7-4183-a7f2-3bf426102fc1.png"> ## 5. However, the tag actually exists. <img width="1161" alt="image" src="https://user-images.githubusercontent.com/9418365/192243033-e45bf7e6-73ce-43fe-a99b-2260ff6bd730.png"> ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? a command-line. ### Database MySQL
GiteaMirror added the type/bug label 2025-11-02 08:44:36 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9616