debian-mirror-gitlab/app/services/merge_requests/reopen_service.rb
2015-04-26 09:18:37 +02:00

16 lines
467 B
Ruby

module MergeRequests
class ReopenService < MergeRequests::BaseService
def execute(merge_request)
if merge_request.reopen
event_service.reopen_mr(merge_request, current_user)
create_note(merge_request)
notification_service.reopen_mr(merge_request, current_user)
execute_hooks(merge_request, 'reopen')
merge_request.reload_code
merge_request.mark_as_unchecked
end
merge_request
end
end
end