Commit 529091b6 authored by Douwe Maan's avatar Douwe Maan Committed by Valery Sizov

Return true/false from AutoMergeService#merge!

parent 81666b30
...@@ -41,6 +41,10 @@ module MergeRequests ...@@ -41,6 +41,10 @@ module MergeRequests
if merge_request.remove_source_branch? if merge_request.remove_source_branch?
DeleteBranchService.new(merge_request.source_project, current_user).execute(merge_request.source_branch) DeleteBranchService.new(merge_request.source_project, current_user).execute(merge_request.source_branch)
end end
true
else
false
end end
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