summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/gl_objects/protected_branches.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/gl_objects/protected_branches.rst b/docs/gl_objects/protected_branches.rst
index 006bb8b..bd2b22b 100644
--- a/docs/gl_objects/protected_branches.rst
+++ b/docs/gl_objects/protected_branches.rst
@@ -29,7 +29,11 @@ Get a single protected branch::
Create a protected branch::
- p_branch = project.protectedbranches.create({'name': '*-stable'})
+ p_branch = project.protectedbranches.create({
+ 'name': '*-stable',
+ 'merge_access_level': gitlab.DEVELOPER_ACCESS,
+ 'push_access_level': gitlab.MASTER_ACCESS
+ })
Delete a protected branch::