Skip to content
Snippets Groups Projects
Commit 490cf7bf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Improve protected branches selectbox options

parent 635ebac6
No related branches found
No related tags found
1 merge request!8686add "Uplaod" and "Replace" functionality
Loading
Loading
@@ -50,12 +50,13 @@ module Gitlab
end
 
def protection_options
{
"None" => PROTECTION_NONE,
"Protect, developers can push" => PROTECTION_DEV_CAN_PUSH,
"Full protection" => PROTECTION_FULL,
}
{
"Not protected, developers and masters can (force) push and delete the branch" => PROTECTION_NONE,
"Partially protected, developers can also push but prevent all force pushes and deletion" => PROTECTION_DEV_CAN_PUSH,
"Fully protected, only masters can push and prevent all force pushes and deletion" => PROTECTION_FULL,
}
end
def protection_values
protection_options.values
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment