2018-03-17 18:26:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module GithubImport
|
2020-04-08 14:13:33 +05:30
|
|
|
class ImportPullRequestWorker # rubocop:disable Scalability/IdempotentWorker
|
2018-03-17 18:26:18 +05:30
|
|
|
include ObjectImporter
|
|
|
|
|
|
|
|
def representation_class
|
|
|
|
Representation::PullRequest
|
|
|
|
end
|
|
|
|
|
|
|
|
def importer_class
|
|
|
|
Importer::PullRequestImporter
|
|
|
|
end
|
|
|
|
|
|
|
|
def counter_name
|
|
|
|
:github_importer_imported_pull_requests
|
|
|
|
end
|
|
|
|
|
|
|
|
def counter_description
|
|
|
|
'The number of imported GitHub pull requests'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|