Closed
Description
The branch.protect()
function currently supports two arguments:
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
Metadata
Metadata
Assignees
Labels
No labels