2016-10-14 22:25:12 +00:00
|
|
|
- content_for :page_specific_javascripts do
|
2016-11-03 21:38:54 +00:00
|
|
|
= page_specific_javascript_bundle_tag('protected_branches')
|
2012-02-15 20:02:33 +00:00
|
|
|
|
2016-04-26 14:50:31 +00:00
|
|
|
.row.prepend-top-default.append-bottom-default
|
|
|
|
.col-lg-3
|
|
|
|
%h4.prepend-top-0
|
2017-02-10 17:27:43 +00:00
|
|
|
Protected Branches
|
2016-06-17 05:51:17 +00:00
|
|
|
%p Keep stable branches secure and force developers to use merge requests.
|
|
|
|
%p.prepend-top-20
|
2016-07-22 07:56:25 +00:00
|
|
|
By default, protected branches are designed to:
|
2016-04-26 14:50:31 +00:00
|
|
|
%ul
|
2016-07-22 07:56:25 +00:00
|
|
|
%li prevent their creation, if not already created, from everybody except Masters
|
|
|
|
%li prevent pushes from everybody except Masters
|
|
|
|
%li prevent <strong>anyone</strong> from force pushing to the branch
|
|
|
|
%li prevent <strong>anyone</strong> from deleting the branch
|
|
|
|
%p.append-bottom-0 Read more about #{link_to "protected branches", help_page_path("user/project/protected_branches"), class: "underlined-link"} and #{link_to "project permissions", help_page_path("user/permissions"), class: "underlined-link"}.
|
2016-06-17 05:51:17 +00:00
|
|
|
.col-lg-9
|
2016-04-26 14:50:31 +00:00
|
|
|
- if can? current_user, :admin_project, @project
|
2017-01-24 00:28:40 +00:00
|
|
|
= render 'projects/protected_branches/create_protected_branch'
|
2012-02-15 20:02:33 +00:00
|
|
|
|
2017-01-24 00:28:40 +00:00
|
|
|
= render "projects/protected_branches/branches_list"
|