Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.0 on 2022-01-18 at 14:00 UTC+1 (a few minutes of down time)

Commit b7eb0d17 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Add checkbox for protected branch developer can push to.

parent 5b10486e61e3
......@@ -27,6 +27,6 @@ def destroy
def protected_branch_params
params.require(:protected_branch).permit(:name, :developers_can_push)
......@@ -22,6 +22,10 @@
= f.label :name, "Branch", class: 'control-label'
=, { |br| [,] } , {include_blank: "Select branch"}, {class: "select2"})
= f.label :developers_can_push, "Developers can push?", class: 'control-label'
= f.check_box :developers_can_push
= f.submit 'Protect', class: "btn-create btn"
- unless @branches.empty?
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