Skip to content

Unprotect branches with delete #634 Fixed#1112

Open
AlexHerting wants to merge 1 commit intogitlab4j:mainfrom
AlexHerting:Unprotect-branches-with-delete-#634
Open

Unprotect branches with delete #634 Fixed#1112
AlexHerting wants to merge 1 commit intogitlab4j:mainfrom
AlexHerting:Unprotect-branches-with-delete-#634

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.

2 participants