Creating a release via the API should allow for creating an annotated tag #13389

Closed
opened 2025-11-02 10:40:56 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @jared-opus on GitHub (Aug 15, 2024).

Feature Description

Currently, only releases created using the web interface can create annotated tags.
It would be nice to have that option available to releases created via the API, as well. Currently, only lightweight tags will be created.

From the API code:

if err := release_service.CreateRelease(ctx.Repo.GitRepo, rel, nil, ""); err != nil {

Where the "" passed argument is the "msg" parameter that would be used to create an annotated tag message, if it wasn't blank.

Screenshots

No response

Originally created by @jared-opus on GitHub (Aug 15, 2024). ### Feature Description Currently, only releases created using the web interface can create annotated tags. It would be nice to have that option available to releases created via the API, as well. Currently, only lightweight tags will be created. From the API code: ``` if err := release_service.CreateRelease(ctx.Repo.GitRepo, rel, nil, ""); err != nil { ``` Where the `""` passed argument is the "msg" parameter that would be used to create an annotated tag message, if it wasn't blank. ### Screenshots _No response_
GiteaMirror added the topic/apitype/proposal labels 2025-11-02 10:40:56 -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#13389