Improve protected branches selectbox options
This commit is contained in:
parent
635ebac606
commit
490cf7bfce
1 changed files with 6 additions and 5 deletions
|
@ -50,12 +50,13 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def protection_options
|
def protection_options
|
||||||
{
|
{
|
||||||
"None" => PROTECTION_NONE,
|
"Not protected, developers and masters can (force) push and delete the branch" => PROTECTION_NONE,
|
||||||
"Protect, developers can push" => PROTECTION_DEV_CAN_PUSH,
|
"Partially protected, developers can also push but prevent all force pushes and deletion" => PROTECTION_DEV_CAN_PUSH,
|
||||||
"Full protection" => PROTECTION_FULL,
|
"Fully protected, only masters can push and prevent all force pushes and deletion" => PROTECTION_FULL,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def protection_values
|
def protection_values
|
||||||
protection_options.values
|
protection_options.values
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue