summaryrefslogtreecommitdiff
path: root/app/views/projects/_merge_request_merge_method_settings.html.haml
blob: 9082bfc409d6b07f946822d9a06b48e098d96db5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- form = local_assigns.fetch(:form)

.form-group
  = label_tag :merge_method_merge, class: 'label-bold' do
    = _('Merge method')
  .form-check
    = form.radio_button :merge_method, :merge, class: "js-merge-method-radio form-check-input"
    = label_tag :project_merge_method_merge, class: 'form-check-label' do
      .mb-3
        = _('Merge commit')
        .text-secondary
          = _('A merge commit is created for every merge, and merging is allowed as long as there are no conflicts.')

.form-check
  = form.radio_button :merge_method, :rebase_merge, class: "js-merge-method-radio form-check-input"
  = label_tag :project_merge_method_rebase_merge, class: 'form-check-label' do
    .mb-3
      = _('Merge commit with semi-linear history')
      .text-secondary
        = _('A merge commit is created for every merge, but merging is only allowed if fast-forward merge is possible. This way you could make sure that if this merge request would build, after merging to target branch it would also build.')
      .text-secondary
        = _('When fast-forward merge is not possible, the user is given the option to rebase.')

.form-check
  = form.radio_button :merge_method, :ff, class: "js-merge-method-radio qa-radio-button-merge-ff form-check-input"
  = label_tag :project_merge_method_ff, class: 'form-check-label' do
    .mb-3
      = _('Fast-forward merge')
      .text-secondary
        = _('No merge commits are created and all merges are fast-forwarded, which means that merging is only allowed if the branch could be fast-forwarded. When fast-forward merge is not possible, the user is given the option to rebase.')