Skip to content

Commit a276aaf

Browse files
jolheisersapk
authored andcommitted
Fix NewCommitStatus (#9434) (#9435)
Signed-off-by: jolheiser <[email protected]>
1 parent e03934f commit a276aaf

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
@@ -5284,8 +5284,8 @@
52845284
}
52855285
],
52865286
"responses": {
5287-
"200": {
5288-
"$ref": "#/responses/StatusList"
5287+
"201": {
5288+
"$ref": "#/responses/Status"
52895289
}
52905290
}
52915291
}

0 commit comments

Comments
 (0)