Skip to content
Discussion options

You must be logged in to vote

Does the branch already exist before you mark it as "protected". https://python-gitlab.readthedocs.io/en/main/gl_objects/branches.html

Creating a "protected branch" doesn't create a branch. It just defines what will be a protected branch and what the restrictions are on that protected branch.

References:
https://docs.gitlab.com/ee/api/protected_branches.html#protected-branches-api

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jalanh11640
Comment options

Answer selected by jalanh11640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants