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:
10
10
* ``gitlab.GUEST_ACCESS ``: ``10 ``
11
11
* ``gitlab.REPORTER_ACCESS ``: ``20 ``
12
12
* ``gitlab.DEVELOPER_ACCESS ``: ``30 ``
13
- * ``gitlab.MASTER_ACCESS ``: ``40 ``
13
+ * ``gitlab.MAINTAINER_ACCESS ``: ``40 ``
14
14
* ``gitlab.OWNER_ACCESS ``: ``50 ``
15
15
16
16
References
@@ -43,7 +43,7 @@ Create an access request::
43
43
Approve an access request::
44
44
45
45
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
47
47
48
48
Deny (delete) an access request::
49
49
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ The following constants define the supported access levels:
142
142
* ``gitlab.GUEST_ACCESS = 10 ``
143
143
* ``gitlab.REPORTER_ACCESS = 20 ``
144
144
* ``gitlab.DEVELOPER_ACCESS = 30 ``
145
- * ``gitlab.MASTER_ACCESS = 40 ``
145
+ * ``gitlab.MAINTAINER_ACCESS = 40 ``
146
146
* ``gitlab.OWNER_ACCESS = 50 ``
147
147
148
148
Reference
Original file line number Diff line number Diff line change @@ -493,7 +493,7 @@ Add a project member::
493
493
494
494
Modify a project member (change the access level)::
495
495
496
- member.access_level = gitlab.MASTER_ACCESS
496
+ member.access_level = gitlab.MAINTAINER_ACCESS
497
497
member.save()
498
498
499
499
Remove a member from the project team::
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Create a protected branch::
32
32
p_branch = project.protectedbranches.create({
33
33
'name': '*-stable',
34
34
'merge_access_level': gitlab.DEVELOPER_ACCESS,
35
- 'push_access_level': gitlab.MASTER_ACCESS
35
+ 'push_access_level': gitlab.MAINTAINER_ACCESS
36
36
})
37
37
38
38
Delete a protected branch::
Original file line number Diff line number Diff line change 18
18
GUEST_ACCESS = 10
19
19
REPORTER_ACCESS = 20
20
20
DEVELOPER_ACCESS = 30
21
- MASTER_ACCESS = 40
21
+ MAINTAINER_ACCESS = 40
22
+ MASTER_ACCESS = MAINTAINER_ACCESS
22
23
OWNER_ACCESS = 50
23
24
24
25
VISIBILITY_PRIVATE = 0
You can’t perform that action at this time.
0 commit comments