Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unprotect branches with delete #634 Fixed #1112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlexHerting
Copy link

No description provided.

@jmini
Copy link
Collaborator

jmini commented Apr 23, 2024

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
Copy link
Collaborator

jmini commented Apr 23, 2024

The documentation says:

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

DELETE /projects/:id/protected_branches/:name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants