Skip to content

Commit 431366c

Browse files
committed
comment
1 parent f01f387 commit 431366c

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
@@ -247,6 +247,8 @@ func CreateRelease(ctx *context.APIContext) {
247247
IsTag: false,
248248
Repo: ctx.Repo.Repository,
249249
}
250+
// GitHub doesn't have "tag_message", GitLab has: https://docs.gitlab.com/api/releases/#create-a-release
251+
// It doesn't need to be the same as the "release note"
250252
if err := release_service.CreateRelease(ctx.Repo.GitRepo, rel, nil, form.TagMessage); err != nil {
251253
if repo_model.IsErrReleaseAlreadyExist(err) {
252254
ctx.APIError(http.StatusConflict, err)

0 commit comments

Comments
 (0)