Commit 8459873e authored by Mark Chao's avatar Mark Chao

ee

parent 1f93b7f8
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
%li %li
= link_to 'Better Protected Branches', help_page_path('user/project/protected_branches.html'), target: '_blank' = link_to 'Better Protected Branches', help_page_path('user/project/protected_branches.html'), target: '_blank'
%p %p
You can restrict access to protected branches by choosing a role (Masters, Developers) as well as certain users. You can restrict access to protected branches by choosing a role (Maintainers, Developers) as well as certain users.
= render 'shared/promotions/promotion_link_project' = render 'shared/promotions/promotion_link_project'
module EE module EE
module ProtectedBranchHelpers module ProtectedBranchHelpers
def set_allowed_to(operation, option = 'Masters', form: '.js-new-protected-branch') def set_allowed_to(operation, option = 'Maintainers', form: '.js-new-protected-branch')
within form do within form do
find(".js-allowed-to-#{operation}").click find(".js-allowed-to-#{operation}").click
wait_for_requests wait_for_requests
......
Markdown is supported
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