mirror of
https://github.com/go-gitea/gitea
synced 2025-01-03 01:45:59 +01:00
Just use the body
field
This commit is contained in:
parent
6ec5cb77bd
commit
c5d97ddcfa
@ -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"`
|
||||
|
@ -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) {
|
||||
|
4
templates/swagger/v1_json.tmpl
generated
4
templates/swagger/v1_json.tmpl
generated
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user