mirror of
https://github.com/harness/drone.git
synced 2025-05-03 22:32:45 +08:00
fix method in openapi for rebase api (#2689)
* fix method in openapi for rebase api
This commit is contained in:
parent
62f27bb816
commit
934b3e8e5a
@ -1415,7 +1415,7 @@ func repoOperations(reflector *openapi3.Reflector) {
|
||||
_ = reflector.SetRequest(&opRebaseBranch, &struct {
|
||||
repoRequest
|
||||
repo.RebaseInput
|
||||
}{}, http.MethodPatch)
|
||||
}{}, http.MethodPost)
|
||||
_ = reflector.SetJSONResponse(&opRebaseBranch, new(types.RebaseResponse), http.StatusOK)
|
||||
_ = reflector.SetJSONResponse(&opRebaseBranch, new(usererror.Error), http.StatusBadRequest)
|
||||
_ = reflector.SetJSONResponse(&opRebaseBranch, new(usererror.Error), http.StatusInternalServerError)
|
||||
|
Loading…
Reference in New Issue
Block a user