summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-12-19 15:46:53 -0600
committerzeripath <art27@cantab.net>2019-12-19 21:46:53 +0000
commitf5a25d534930b920022c96c030a032290368b5ae (patch)
treeb583099644572f393943a737c930f48d0ceaa0b1 /routers/api
parente57f7639379c8561a8109b35d171a1540d75577e (diff)
downloadgitea-f5a25d534930b920022c96c030a032290368b5ae.tar.gz
gitea-f5a25d534930b920022c96c030a032290368b5ae.zip
Fix NewCommitStatus (#9434)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/repo/status.go4
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)