2014-01-24 07:18:32 -05:00
|
|
|
module MergeRequests
|
|
|
|
class BaseMergeService
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def notification
|
|
|
|
NotificationService.new
|
|
|
|
end
|
|
|
|
|
2014-03-25 08:01:52 -04:00
|
|
|
def create_merge_event(merge_request, current_user)
|
2014-03-25 09:08:25 -04:00
|
|
|
EventCreateService.new.merge_mr(merge_request, current_user)
|
2014-01-24 07:18:32 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def execute_project_hooks(merge_request)
|
|
|
|
if merge_request.project
|
|
|
|
merge_request.project.execute_hooks(merge_request.to_hook_data, :merge_request_hooks)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|