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-07-26 06:10:00 +00:00
|
|
|
worker_resource_boundary :cpu
|
2021-05-03 09:10:02 +00:00
|
|
|
|
2020-11-28 06:09:28 +00:00
|
|
|
def representation_class
|
|
|
|
Gitlab::GithubImport::Representation::PullRequest
|
|
|
|
end
|
|
|
|
|
|
|
|
def importer_class
|
|
|
|
Importer::PullRequestMergedByImporter
|
|
|
|
end
|
|
|
|
|
2021-06-21 09:10:07 +00:00
|
|
|
def object_type
|
|
|
|
:pull_request_merged_by
|
|
|
|
end
|
2020-11-28 06:09:28 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|