File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed
Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ following constants are provided to represent the access levels:
1010* ``gitlab.GUEST_ACCESS ``: ``10 ``
1111* ``gitlab.REPORTER_ACCESS ``: ``20 ``
1212* ``gitlab.DEVELOPER_ACCESS ``: ``30 ``
13- * ``gitlab.MASTER_ACCESS ``: ``40 ``
13+ * ``gitlab.MAINTAINER_ACCESS ``: ``40 ``
1414* ``gitlab.OWNER_ACCESS ``: ``50 ``
1515
1616References
@@ -43,7 +43,7 @@ Create an access request::
4343Approve an access request::
4444
4545 ar.approve() # defaults to DEVELOPER level
46- ar.approve(access_level=gitlab.MASTER_ACCESS ) # explicitly set access level
46+ ar.approve(access_level=gitlab.MAINTAINER_ACCESS ) # explicitly set access level
4747
4848Deny (delete) an access request::
4949
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ The following constants define the supported access levels:
142142* ``gitlab.GUEST_ACCESS = 10 ``
143143* ``gitlab.REPORTER_ACCESS = 20 ``
144144* ``gitlab.DEVELOPER_ACCESS = 30 ``
145- * ``gitlab.MASTER_ACCESS = 40 ``
145+ * ``gitlab.MAINTAINER_ACCESS = 40 ``
146146* ``gitlab.OWNER_ACCESS = 50 ``
147147
148148Reference
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ Add a project member::
493493
494494Modify a project member (change the access level)::
495495
496- member.access_level = gitlab.MASTER_ACCESS
496+ member.access_level = gitlab.MAINTAINER_ACCESS
497497 member.save()
498498
499499Remove a member from the project team::
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Create a protected branch::
3232 p_branch = project.protectedbranches.create({
3333 'name': '*-stable',
3434 'merge_access_level': gitlab.DEVELOPER_ACCESS,
35- 'push_access_level': gitlab.MASTER_ACCESS
35+ 'push_access_level': gitlab.MAINTAINER_ACCESS
3636 })
3737
3838Delete a protected branch::
Original file line number Diff line number Diff line change 1818GUEST_ACCESS = 10
1919REPORTER_ACCESS = 20
2020DEVELOPER_ACCESS = 30
21- MASTER_ACCESS = 40
21+ MAINTAINER_ACCESS = 40
22+ MASTER_ACCESS = MAINTAINER_ACCESS
2223OWNER_ACCESS = 50
2324
2425VISIBILITY_PRIVATE = 0
You can’t perform that action at this time.
0 commit comments