Fix NewCommitStatus (#9434)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
tokarchuk/v1.17
John Olheiser 5 years ago committed by zeripath
parent e57f763937
commit f5a25d5349
  1. 4
      routers/api/v1/repo/status.go
  2. 4
      templates/swagger/v1_json.tmpl

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

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

Loading…
Cancel
Save