From a276aaf61e134a3f4d44b7dc53a2366af9de0483 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Thu, 19 Dec 2019 16:49:47 -0600 Subject: [PATCH] Fix NewCommitStatus (#9434) (#9435) Signed-off-by: jolheiser --- routers/api/v1/repo/status.go | 4 ++-- templates/swagger/v1_json.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 d8750d8bcc..561a67e5d2 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -5284,8 +5284,8 @@ } ], "responses": { - "200": { - "$ref": "#/responses/StatusList" + "201": { + "$ref": "#/responses/Status" } } }