]> source.dussan.org Git - gitea.git/commitdiff
Fix NewCommitStatus (#9434)
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>
Thu, 19 Dec 2019 21:46:53 +0000 (15:46 -0600)
committerzeripath <art27@cantab.net>
Thu, 19 Dec 2019 21:46:53 +0000 (21:46 +0000)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
routers/api/v1/repo/status.go
templates/swagger/v1_json.tmpl

index 48edd22910c2267a0339cc1eb5c1ddfcf47c8051..7d4a2de389116500c24a821e3ce980993a81c0ef 100644 (file)
@@ -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)
index 7ed43b450c74cd1fe7efdfd4658bf274827b2e33..f1789535bafae95e70ce7f8235f05d6c5fc293e2 100644 (file)
           }
         ],
         "responses": {
-          "200": {
-            "$ref": "#/responses/StatusList"
+          "201": {
+            "$ref": "#/responses/Status"
           }
         }
       }