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.
1 parent 4cf8118 commit 590c41aCopy full SHA for 590c41a
docs/gl_objects/protected_branches.rst
@@ -29,7 +29,11 @@ Get a single protected branch::
29
30
Create a protected branch::
31
32
- p_branch = project.protectedbranches.create({'name': '*-stable'})
+ p_branch = project.protectedbranches.create({
33
+ 'name': '*-stable',
34
+ 'merge_access_level': gitlab.DEVELOPER_ACCESS,
35
+ 'push_access_level': gitlab.MASTER_ACCESS
36
+ })
37
38
Delete a protected branch::
39
0 commit comments