debian-mirror-gitlab/app/services/merge_requests/resolved_discussion_notification_service.rb
2018-10-15 14:42:47 +05:30

10 lines
374 B
Ruby

module MergeRequests
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.async.resolve_all_discussions(merge_request, current_user)
end
end
end