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

11 lines
360 B
Ruby
Raw Normal View History

module MergeRequests
class AllDiscussionsResolvedService < 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