1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-10 17:25:54 +01:00

Fix NewCommitStatus (#9434) (#9435)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser 2019-12-19 16:49:47 -06:00 committed by Antoine GIRARD
parent e03934f035
commit a276aaf61e
2 changed files with 4 additions and 4 deletions

@ -41,8 +41,8 @@ func NewCommitStatus(ctx *context.APIContext, form api.CreateStatusOption) {
// schema:
// "$ref": "#/definitions/CreateStatusOption"
// responses:
// "200":
// "$ref": "#/responses/StatusList"
// "201":
// "$ref": "#/responses/Status"
sha := ctx.Params("sha")
if len(sha) == 0 {
ctx.Error(400, "sha not given", nil)

@ -5284,8 +5284,8 @@
}
],
"responses": {
"200": {
"$ref": "#/responses/StatusList"
"201": {
"$ref": "#/responses/Status"
}
}
}