From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Thu, 19 Dec 2019 21:46:53 +0000 (-0600) Subject: Fix NewCommitStatus (#9434) X-Git-Tag: v1.11.0-rc1~107 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f5a25d534930b920022c96c030a032290368b5ae;p=gitea.git Fix NewCommitStatus (#9434) Signed-off-by: jolheiser --- diff --git a/routers/api/v1/repo/status.go b/routers/api/v1/repo/status.go index 48edd22910..7d4a2de389 100644 --- a/routers/api/v1/repo/status.go +++ b/routers/api/v1/repo/status.go @@ -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) diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 7ed43b450c..f1789535ba 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -5879,8 +5879,8 @@ } ], "responses": { - "200": { - "$ref": "#/responses/StatusList" + "201": { + "$ref": "#/responses/Status" } } }