mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00: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 {
|
type CreateReleaseOption struct {
|
||||||
// required: true
|
// required: true
|
||||||
TagName string `json:"tag_name" binding:"Required"`
|
TagName string `json:"tag_name" binding:"Required"`
|
||||||
TagMessage string `json:"tag_message"`
|
|
||||||
Target string `json:"target_commitish"`
|
Target string `json:"target_commitish"`
|
||||||
Title string `json:"name"`
|
Title string `json:"name"`
|
||||||
Note string `json:"body"`
|
Note string `json:"body"`
|
||||||
|
@ -246,7 +246,7 @@ func CreateRelease(ctx *context.APIContext) {
|
|||||||
IsTag: false,
|
IsTag: false,
|
||||||
Repo: ctx.Repo.Repository,
|
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) {
|
if repo_model.IsErrReleaseAlreadyExist(err) {
|
||||||
ctx.Error(http.StatusConflict, "ReleaseAlreadyExist", err)
|
ctx.Error(http.StatusConflict, "ReleaseAlreadyExist", err)
|
||||||
} else if models.IsErrProtectedTagName(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",
|
"type": "boolean",
|
||||||
"x-go-name": "IsPrerelease"
|
"x-go-name": "IsPrerelease"
|
||||||
},
|
},
|
||||||
"tag_message": {
|
|
||||||
"type": "string",
|
|
||||||
"x-go-name": "TagMessage"
|
|
||||||
},
|
|
||||||
"tag_name": {
|
"tag_name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"x-go-name": "TagName"
|
"x-go-name": "TagName"
|
||||||
|
Loading…
Reference in New Issue
Block a user