Commit 7335dffb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix conflict in merge request controller

parent badfdf66
...@@ -113,13 +113,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController ...@@ -113,13 +113,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
return access_denied! unless allowed_to_merge? return access_denied! unless allowed_to_merge?
if @merge_request.open? && @merge_request.can_be_merged? if @merge_request.open? && @merge_request.can_be_merged?
<<<<<<< HEAD
AutoMergeWorker.perform_async(@merge_request.id, current_user.id, params) AutoMergeWorker.perform_async(@merge_request.id, current_user.id, params)
=======
@merge_request.should_remove_source_branch = params[:should_remove_source_branch]
@merge_request.should_rebase = params[:should_rebase]
@merge_request.automerge!(current_user, params[:commit_message])
>>>>>>> ee/master
@status = true @status = true
else else
@status = false @status = false
......
...@@ -8,6 +8,7 @@ class AutoMergeWorker ...@@ -8,6 +8,7 @@ class AutoMergeWorker
current_user = User.find(current_user_id) current_user = User.find(current_user_id)
merge_request = MergeRequest.find(merge_request_id) merge_request = MergeRequest.find(merge_request_id)
merge_request.should_remove_source_branch = params[:should_remove_source_branch] merge_request.should_remove_source_branch = params[:should_remove_source_branch]
merge_request.should_rebase = params[:should_rebase]
merge_request.automerge!(current_user, params[:commit_message]) merge_request.automerge!(current_user, params[:commit_message])
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment