Commit 449903f2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Dont allow approvals requirement be less than zero

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent a90e7d35
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
= f.label :approvals_before_merge, class: 'control-label' do = f.label :approvals_before_merge, class: 'control-label' do
Approvals required Approvals required
.col-sm-10 .col-sm-10
= f.number_field :approvals_before_merge, class: "form-control" = f.number_field :approvals_before_merge, class: "form-control", min: 0
.help-block .help-block
How many users should approve merge request before it can be accepted. 0 - approval is disabled How many users should approve merge request before it can be accepted. 0 - approval is disabled
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