diff --git a/modules/structs/release.go b/modules/structs/release.go index fac86ca7a23..c7378645c28 100644 --- a/modules/structs/release.go +++ b/modules/structs/release.go @@ -33,7 +33,6 @@ type Release struct { type CreateReleaseOption struct { // required: true TagName string `json:"tag_name" binding:"Required"` - TagMessage string `json:"tag_message"` Target string `json:"target_commitish"` Title string `json:"name"` Note string `json:"body"` diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go index c9a0f33f12f..245a2e3f30b 100644 --- a/routers/api/v1/repo/release.go +++ b/routers/api/v1/repo/release.go @@ -246,7 +246,7 @@ func CreateRelease(ctx *context.APIContext) { IsTag: false, Repo: ctx.Repo.Repository, } - if err := release_service.CreateRelease(ctx.Repo.GitRepo, rel, nil, form.TagMessage); err != nil { + if err := release_service.CreateRelease(ctx.Repo.GitRepo, rel, nil, form.Note); err != nil { if repo_model.IsErrReleaseAlreadyExist(err) { ctx.Error(http.StatusConflict, "ReleaseAlreadyExist", err) } else if models.IsErrProtectedTagName(err) { diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 17bc1f2a05e..52d37547374 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -20115,10 +20115,6 @@ "type": "boolean", "x-go-name": "IsPrerelease" }, - "tag_message": { - "type": "string", - "x-go-name": "TagMessage" - }, "tag_name": { "type": "string", "x-go-name": "TagName"