Welcome to mirror list, hosted at ThFree Co, Russian Federation.

import_issue_worker.rb « github_import « gitlab « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d6a28f4a967fc43e1f30bce4e97fdbcfe084c80 (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 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