2020-11-28 06:09:28 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module GithubImport
|
|
|
|
class ImportPullRequestMergedByWorker # rubocop:disable Scalability/IdempotentWorker
|
|
|
|
include ObjectImporter
|
|
|
|
|
2021-05-03 09:10:02 +00:00
|
|
|
tags :exclude_from_kubernetes
|
|
|
|
|
2020-11-28 06:09:28 +00:00
|
|
|
def representation_class
|
|
|
|
Gitlab::GithubImport::Representation::PullRequest
|
|
|
|
end
|
|
|
|
|
|
|
|
def importer_class
|
|
|
|
Importer::PullRequestMergedByImporter
|
|
|
|
end
|
|
|
|
|
|
|
|
def counter_name
|
|
|
|
:github_importer_imported_pull_requests_merged_by
|
|
|
|
end
|
|
|
|
|
|
|
|
def counter_description
|
|
|
|
'The number of imported GitHub pull requests merged by'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|