Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-22 06:08:49 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-22 06:08:49 +0300
commitdc3735fabb211b07347e58a667b1fa9a15aa7b68 (patch)
treee7ff9a38e241f6239ca7505e3bf2de6f6ca0ac62 /app/views/projects/_merge_request_merge_checks_settings.html.haml
parente5bf29c7cd724726c37795d84c52167b59b99eb1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/projects/_merge_request_merge_checks_settings.html.haml')
-rw-r--r--app/views/projects/_merge_request_merge_checks_settings.html.haml29
1 files changed, 12 insertions, 17 deletions
diff --git a/app/views/projects/_merge_request_merge_checks_settings.html.haml b/app/views/projects/_merge_request_merge_checks_settings.html.haml
index 4f9af40f711..baaa3067c81 100644
--- a/app/views/projects/_merge_request_merge_checks_settings.html.haml
+++ b/app/views/projects/_merge_request_merge_checks_settings.html.haml
@@ -3,21 +3,16 @@
.form-group
%b= s_('ProjectSettings|Merge checks')
%p.text-secondary= s_('ProjectSettings|These checks must pass before merge requests can be merged.')
- .form-check.mb-2.builds-feature
- = form.check_box :only_allow_merge_if_pipeline_succeeds, class: 'form-check-input'
- = form.label :only_allow_merge_if_pipeline_succeeds, class: 'form-check-label' do
- = s_('ProjectSettings|Pipelines must succeed')
- .text-secondary
- = s_("ProjectSettings|Merge requests can't be merged if the latest pipeline did not succeed or is still running.")
- .form-check.mb-2
- .gl-pl-6
- = form.check_box :allow_merge_on_skipped_pipeline, class: 'form-check-input'
- = form.label :allow_merge_on_skipped_pipeline, class: 'form-check-label' do
- = s_('ProjectSettings|Skipped pipelines are considered successful')
- .text-secondary
- = s_('ProjectSettings|Introduces the risk of merging changes that do not pass the pipeline.')
- .form-check.mb-2
- = form.check_box :only_allow_merge_if_all_discussions_are_resolved, class: 'form-check-input', data: { qa_selector: 'allow_merge_if_all_discussions_are_resolved_checkbox' }
- = form.label :only_allow_merge_if_all_discussions_are_resolved, class: 'form-check-label' do
- = s_('ProjectSettings|All discussions must be resolved')
+ .builds-feature
+ = form.gitlab_ui_checkbox_component :only_allow_merge_if_pipeline_succeeds,
+ s_('ProjectSettings|Pipelines must succeed'),
+ help_text: s_("ProjectSettings|Merge requests can't be merged if the latest pipeline did not succeed or is still running.")
+ .gl-pl-6
+ = form.gitlab_ui_checkbox_component :allow_merge_on_skipped_pipeline,
+ s_('ProjectSettings|Skipped pipelines are considered successful'),
+ help_text: s_('ProjectSettings|Introduces the risk of merging changes that do not pass the pipeline.'),
+ checkbox_options: { class: 'gl-pl-6' }
+ = form.gitlab_ui_checkbox_component :only_allow_merge_if_all_discussions_are_resolved,
+ s_('ProjectSettings|All discussions must be resolved'),
+ checkbox_options: { data: { qa_selector: 'allow_merge_if_all_discussions_are_resolved_checkbox' } }
= render_if_exists 'projects/merge_request_merge_checks_jira_enforcement', form: form, project: @project