Skip to content

Commit f5a25d5

Browse files
jolheiserzeripath
authored andcommitted
Fix NewCommitStatus (#9434)
Signed-off-by: jolheiser <[email protected]>
1 parent e57f763 commit f5a25d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

routers/api/v1/repo/status.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func NewCommitStatus(ctx *context.APIContext, form api.CreateStatusOption) {
4141
// schema:
4242
// "$ref": "#/definitions/CreateStatusOption"
4343
// responses:
44-
// "200":
45-
// "$ref": "#/responses/StatusList"
44+
// "201":
45+
// "$ref": "#/responses/Status"
4646
sha := ctx.Params("sha")
4747
if len(sha) == 0 {
4848
ctx.Error(400, "sha not given", nil)

templates/swagger/v1_json.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5879,8 +5879,8 @@
58795879
}
58805880
],
58815881
"responses": {
5882-
"200": {
5883-
"$ref": "#/responses/StatusList"
5882+
"201": {
5883+
"$ref": "#/responses/Status"
58845884
}
58855885
}
58865886
}

0 commit comments

Comments
 (0)