summaryrefslogtreecommitdiff
path: root/app/workers/gitlab/github_import/import_pull_request_worker.rb
blob: 62a6da152a3551c84f4bc9250a6798c9d88d7a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Gitlab
  module GithubImport
    class ImportPullRequestWorker
      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