gitlab-org--gitlab-foss/app/services/issues/reopen_service.rb

21 lines
470 B
Ruby
Raw Normal View History

module Issues
class ReopenService < Issues::BaseService
def execute(issue)
if issue.reopen
event_service.reopen_issue(issue, current_user)
create_note(issue)
2014-07-03 06:51:24 -04:00
notification_service.reopen_issue(issue, current_user)
execute_hooks(issue, 'reopen')
end
issue
end
private
def create_note(issue)
SystemNoteService.change_status(issue, issue.project, current_user, issue.state, nil)
end
end
end