28 lines
1.6 KiB
Plaintext
28 lines
1.6 KiB
Plaintext
- form = local_assigns.fetch(:form)
|
|
|
|
.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|Pipelines need to be configured to enable this feature.')
|
|
= link_to sprite_icon('question-o'),
|
|
help_page_path('ci/merge_request_pipelines/index.md',
|
|
anchor: 'pipelines-for-merge-requests'),
|
|
target: '_blank'
|
|
.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|This introduces the risk of merging changes that will 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')
|
|
= render_if_exists 'projects/merge_request_merge_checks_jira_enforcement', form: form, project: @project
|