Skip to content

Commit f91fb9d

Browse files
committed
comment
1 parent 6ec5cb7 commit f91fb9d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/api/v1/repo/release.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ func CreateRelease(ctx *context.APIContext) {
246246
IsTag: false,
247247
Repo: ctx.Repo.Repository,
248248
}
249+
// GitHub doesn't have "tag_message", GitLab has: https://docs.gitlab.com/api/releases/#create-a-release
250+
// It doesn't need to be the same as the "release note"
249251
if err := release_service.CreateRelease(ctx.Repo.GitRepo, rel, nil, form.TagMessage); err != nil {
250252
if repo_model.IsErrReleaseAlreadyExist(err) {
251253
ctx.Error(http.StatusConflict, "ReleaseAlreadyExist", err)

0 commit comments

Comments
 (0)