Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Lacko
gitlab_api
Commits
b98cf880
Verified
Commit
b98cf880
authored
May 11, 2022
by
Roman Lacko
Browse files
GitLab: Add MEMBER_MAINTAINER level to replace deprecated MEMBER_MASTER
parent
5cbb9273
Changes
1
Hide whitespace changes
Inline
Side-by-side
GitLab.pm
View file @
b98cf880
...
...
@@ -39,6 +39,7 @@ our %EXPORT_TAGS = (
MEMBER_REPORTER
MEMBER_DEVELOPER
MEMBER_MASTER
MEMBER_MAINAINER
MEMBER_OWNER
)
],
...
...
@@ -74,7 +75,7 @@ use constant {
MEMBER_GUEST
=>
10
,
MEMBER_REPORTER
=>
20
,
MEMBER_DEVELOPER
=>
30
,
MEMBER_MA
ST
ER
=>
40
,
MEMBER_MA
INTAIN
ER
=>
40
,
MEMBER_OWNER
=>
50
,
# Project Visibility
...
...
@@ -83,6 +84,11 @@ use constant {
PROJECT_PUBLIC
=>
"
public
",
};
sub
MEMBER_MASTER
{
carp
"
MEMBER_MASTER is deprecated, use MEMBER_MAINTAINER instead
";
return
MEMBER_MAINTAINER
;
}
use
constant
GROUP_VISIBILITY
=>
(
GROUP_PRIVATE
,
GROUP_INTERNAL
,
...
...
@@ -93,7 +99,7 @@ use constant MEMBER_ACCESS => (
MEMBER_GUEST
,
MEMBER_REPORTER
,
MEMBER_DEVELOPER
,
MEMBER_MA
ST
ER
,
MEMBER_MA
INTAIN
ER
,
MEMBER_OWNER
,
);
...
...
@@ -190,9 +196,12 @@ Import with C<:member_access> tag.
10 MEMBER_GUEST
20 MEMBER_REPORTER
30 MEMBER_DEVELOPER
40 MEMBER_MA
ST
ER
40 MEMBER_MA
INTAIN
ER
50 MEMBER_OWNER
There is also a deprecated C<MEMBER_MASTER> level with the same value as
C<MEMBER_MAINTAINER>. It will be removed from future releases of this API.
=head3 Project Visibility
Import with C<:project_visibility> tag.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment