-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
modifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/enhancementAn improvement of existing functionalityAn improvement of existing functionality
Description
When the release is deleted via the web interface the tag is deleted
When the release is deleted via the API the tag is not deleted
The DeleteReleaseByID function already has an argument to either delete or not the tag.
that argument is set to true when called from the web interface
Line 353 in 3878e98
| if err := releaseservice.DeleteReleaseByID(ctx.QueryInt64("id"), ctx.User, true); err != nil { |
and to false when called from the API
gitea/routers/api/v1/repo/release.go
Line 333 in 3878e98
| if err := releaseservice.DeleteReleaseByID(id, ctx.User, false); err != nil { |
that'd be nice we could decide wether or not we want to delete the tag whith the API call
Thanks in advance
Metadata
Metadata
Assignees
Labels
modifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies themtype/enhancementAn improvement of existing functionalityAn improvement of existing functionality