debian-mirror-gitlab/app/views/projects/_merge_request_merge_settings.html.haml

25 lines
1.6 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- form = local_assigns.fetch(:form)
.form-group
2018-11-08 19:23:39 +05:30
.form-check.builds-feature{ class: ("hidden" if @project && @project.project_feature.send(:builds_access_level) == 0) }
= 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
2019-05-18 00:54:41 +05:30
.mb-3
= _('Only allow merge requests to be merged if the pipeline succeeds')
.text-secondary
= _('Pipelines need to be configured to enable this feature.')
= link_to icon('question-circle'), help_page_path('user/project/merge_requests/merge_when_pipeline_succeeds', anchor: 'only-allow-merge-requests-to-be-merged-if-the-pipeline-succeeds'), target: '_blank'
= render_if_exists 'projects/merge_pipelines_settings', form: form
2018-11-08 19:23:39 +05:30
.form-check
= form.check_box :only_allow_merge_if_all_discussions_are_resolved, class: 'form-check-input'
= form.label :only_allow_merge_if_all_discussions_are_resolved, class: 'form-check-label' do
2019-05-18 00:54:41 +05:30
%p= _('Only allow merge requests to be merged if all discussions are resolved')
2018-11-08 19:23:39 +05:30
.form-check
= form.check_box :resolve_outdated_diff_discussions, class: 'form-check-input'
= form.label :resolve_outdated_diff_discussions, class: 'form-check-label' do
2019-05-18 00:54:41 +05:30
%p= _('Automatically resolve merge request diff discussions when they become outdated')
2018-11-08 19:23:39 +05:30
.form-check
= form.check_box :printing_merge_request_link_enabled, class: 'form-check-input'
= form.label :printing_merge_request_link_enabled, class: 'form-check-label' do
2019-05-18 00:54:41 +05:30
%p= _('Show link to create/view merge request when pushing from the command line')