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

# TODO: remove in 16.X milestone
# https://gitlab.com/gitlab-org/gitlab/-/issues/377059
module Gitlab
  module GithubImport
    class ImportReleaseAttachmentsWorker # rubocop:disable Scalability/IdempotentWorker
      include ObjectImporter

      def representation_class
        Representation::NoteText
      end

      def importer_class
        Importer::NoteAttachmentsImporter
      end

      def object_type
        :release_attachment
      end
    end
  end
end