Skip to content

Commit

Permalink
Fix NewCommitStatus (#9434) (#9435)
Browse files Browse the repository at this point in the history
Signed-off-by: jolheiser <john.olheiser@gmail.com>
  • Loading branch information
jolheiser authored and sapk committed Dec 19, 2019
1 parent e03934f commit a276aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions routers/api/v1/repo/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions templates/swagger/v1_json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5284,8 +5284,8 @@
}
],
"responses": {
"200": {
"$ref": "#/responses/StatusList"
"201": {
"$ref": "#/responses/Status"
}
}
}
Expand Down

0 comments on commit a276aaf

Please sign in to comment.