We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The branch.protect() function currently supports two arguments:
branch.protect()
developers_can_push: bool developers_can_merge: bool
per https://python-gitlab.readthedocs.io/en/stable/gl_objects/branches.html
Since gitlab allows for more granularity than this, I would propose adding the arguments:
maintainers_can_push: bool maintainers_can_merge: bool
The documentation appears to support this by specifying a higher access level (60): https://docs.gitlab.com/ce/api/protected_branches.html#protected-branches-api