Browse Source

Fix NewCommitStatus (#9434)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
for-closed-social
John Olheiser 4 years ago
committed by zeripath
parent
commit
f5a25d5349
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      routers/api/v1/repo/status.go
  2. +2
    -2
      templates/swagger/v1_json.tmpl

+ 2
- 2
routers/api/v1/repo/status.go View File

@ -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)

+ 2
- 2
templates/swagger/v1_json.tmpl View File

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

Loading…
Cancel
Save