Verified Commit b98cf880 authored by Roman Lacko's avatar Roman Lacko
Browse files

GitLab: Add MEMBER_MAINTAINER level to replace deprecated MEMBER_MASTER

parent 5cbb9273
......@@ -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_MASTER => 40,
MEMBER_MAINTAINER => 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_MASTER,
MEMBER_MAINTAINER,
MEMBER_OWNER,
);
......@@ -190,9 +196,12 @@ Import with C<:member_access> tag.
10 MEMBER_GUEST
20 MEMBER_REPORTER
30 MEMBER_DEVELOPER
40 MEMBER_MASTER
40 MEMBER_MAINTAINER
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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment