GeezerVison is showing github.com — refactor: rename MASTER_ACCESS · python-gitlab/python-gitlab@c38775a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: docs/gl_objects/access_requests.rst +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| 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 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: docs/gl_objects/groups.rst +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| 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 |
|
Collapse file
Copy file name to clipboardExpand all lines: docs/gl_objects/projects.rst +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| 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:: |
|
Collapse file
Copy file name to clipboardExpand all lines: docs/gl_objects/protected_branches.rst +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| 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:: |
|
Collapse file
Copy file name to clipboardExpand all lines: gitlab/const.py +2-1Lines changed: 2 additions & 1 deletion | 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 |
|