gitlab-org--gitlab-foss/app/services/merge_requests/resolved_discussion_notification_service.rb

11 lines
368 B
Ruby
Raw Normal View History

module MergeRequests
2016-08-15 19:45:23 -04:00
class ResolvedDiscussionNotificationService < MergeRequests::BaseService
def execute(merge_request)
return unless merge_request.discussions_resolved?
SystemNoteService.resolve_all_discussions(merge_request, project, current_user)
notification_service.resolve_all_discussions(merge_request, current_user)
end
end
end