Commit 0484ae7e authored by Douwe Maan's avatar Douwe Maan

Return true/false from AutoMergeService#merge!

parent 276ca427
...@@ -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