debian-mirror-gitlab/lib/bulk_imports/groups/pipelines/labels_pipeline.rb
2021-04-29 21:17:54 +05:30

21 lines
491 B
Ruby

# frozen_string_literal: true
module BulkImports
module Groups
module Pipelines
class LabelsPipeline
include Pipeline
extractor BulkImports::Common::Extractors::GraphqlExtractor,
query: BulkImports::Groups::Graphql::GetLabelsQuery
transformer Common::Transformers::ProhibitedAttributesTransformer
def load(context, data)
Labels::CreateService.new(data).execute(group: context.group)
end
end
end
end
end