Skip to content

[API] Add an delete tag option to DELETE releases #12973

Closed
@sigma-frossignol

Description

@sigma-frossignol

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

if err := releaseservice.DeleteReleaseByID(ctx.QueryInt64("id"), ctx.User, true); err != nil {

and to false when called from the API

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

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions