gitlab4j-api
gitlab4j-api copied to clipboard
Unprotect branches with delete #634 Fixed
This requires more tests.
I did not find the endpoint in the documentation, but I found a test case here: https://gitlab.com/gitlab-org/gitlab/-/blob/87385d7e0203c37dc97d4f9845cfe9860c33d2f3/spec/requests/api/branches_spec.rb#L629
Which is using PUT and not DELETE
The documentation says:
https://docs.gitlab.com/ee/api/protected_branches.html#unprotect-repository-branches
DELETE /projects/:id/protected_branches/:name