debian-mirror-gitlab/app/services/merge_requests/reopen_service.rb

17 lines
467 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
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)
2015-04-26 12:48:37 +05:30
notification_service.reopen_mr(merge_request, current_user)
execute_hooks(merge_request, 'reopen')
2016-08-24 12:49:21 +05:30
merge_request.reload_diff
2014-09-02 18:07:02 +05:30
merge_request.mark_as_unchecked
end
merge_request
end
end
end