Add branch_type validations
Compare changes
Files
3- Martin Čavoj authored
Changelog: added EE: true
@@ -13,6 +13,7 @@ def execute
@@ -13,6 +13,7 @@ def execute
return error_with_title(s_('SecurityOrchestration|Policy cannot be enabled without branch information')) if blank_branch_for_rule?
return error_with_title(s_('SecurityOrchestration|Policy cannot be enabled for non-existing branches (%{branches})') % { branches: missing_branch_names.join(', ') }) if missing_branch_for_rule?
@@ -38,7 +39,7 @@ def blank_name?
@@ -38,7 +39,7 @@ def blank_name?
@@ -73,9 +74,52 @@ def branches_for_project
@@ -73,9 +74,52 @@ def branches_for_project