gitlab-org--gitlab-foss/app/workers/gitlab/github_import/import_issue_worker.rb

26 lines
475 B
Ruby

# frozen_string_literal: true
module Gitlab
module GithubImport
class ImportIssueWorker # rubocop:disable Scalability/IdempotentWorker
include ObjectImporter
def representation_class
Representation::Issue
end
def importer_class
Importer::IssueAndLabelLinksImporter
end
def object_type
:issue
end
def increment_object_counter?(object)
!object.pull_request?
end
end
end
end