diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-12-19 16:49:47 -0600 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2019-12-19 23:49:47 +0100 |
commit | a276aaf61e134a3f4d44b7dc53a2366af9de0483 (patch) | |
tree | 3ed9ee5a6b08dd0c5997c8105f1db316359e8c84 /routers | |
parent | e03934f03517c63954d7f23ca42cda74ff6389e9 (diff) | |
download | gitea-a276aaf61e134a3f4d44b7dc53a2366af9de0483.tar.gz gitea-a276aaf61e134a3f4d44b7dc53a2366af9de0483.zip |
Fix NewCommitStatus (#9434) (#9435)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/status.go | 4 |
1 files changed, 2 insertions, 2 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) |