gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

Unprotect branches with delete #634 Fixed

Open AlexHerting opened this issue 1 year ago • 2 comments

AlexHerting avatar Apr 16 '24 20:04 AlexHerting

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

jmini avatar Apr 23 '24 05:04 jmini

The documentation says:

https://docs.gitlab.com/ee/api/protected_branches.html#unprotect-repository-branches

DELETE /projects/:id/protected_branches/:name

jmini avatar Apr 23 '24 05:04 jmini