Skip to content
Snippets Groups Projects
Commit 37f3d0f2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix newlines in how-to-merge. Added steps description. Fixes #3772

parent 2aa620c2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -21,6 +21,13 @@ class MergeRequest
this.initMergeWidget()
this.$('.show-all-commits').on 'click', =>
this.showAllCommits()
modal = $('#modal_merge_info').modal modal: true, show:false
$('.how_to_merge_link').bind "click", ->
modal.show()
$('.modal-header .close').bind "click", ->
modal.hide()
 
# Local jQuery finder
$: (selector) ->
Loading
Loading
Loading
Loading
@@ -3,22 +3,17 @@
%a.close{href: "#"} ×
%h3 How To Merge
.modal-body
%p
%strong Step 1.
Checkout target branch and get recent objects from GitLab
%pre.dark
= preserve do
:preserve
git checkout #{@merge_request.target_branch}
git fetch origin
%p
%strong Step 2.
Merge source branch into target branch and push changes to GitLab
%pre.dark
:preserve
git merge origin/#{@merge_request.source_branch}
git push origin #{@merge_request.target_branch}
:javascript
$(function(){
var modal = $('#modal_merge_info').modal({modal: true, show:false});
$('.how_to_merge_link').bind("click", function(){
modal.show();
});
$('.modal-header .close').bind("click", function(){
modal.hide();
})
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment