2014-04-02 14:51:17 -04:00
|
|
|
module MergeRequests
|
|
|
|
class ReopenService < MergeRequests::BaseService
|
|
|
|
def execute(merge_request)
|
|
|
|
if merge_request.reopen
|
|
|
|
event_service.reopen_mr(merge_request, current_user)
|
2014-07-03 07:40:21 -04:00
|
|
|
notification_service.reopen_mr(merge_request, current_user)
|
2014-04-02 14:51:17 -04:00
|
|
|
create_note(merge_request)
|
|
|
|
execute_hooks(merge_request)
|
|
|
|
merge_request.reload_code
|
|
|
|
merge_request.mark_as_unchecked
|
|
|
|
end
|
|
|
|
|
|
|
|
merge_request
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|