Sha256: 26b33b507e77f91f77bb50fcc5ae758c06546059db327f32e01e785e1b4dc971

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

require_relative '../../utils'
require_relative 'base_param_builder'

module Gitlab
  module Triage
    module GraphqlQueries
      module QueryParamBuilders
        class LabelsParamBuilder < BaseParamBuilder
          def initialize(param_name, labels)
            label_param_content = labels.map { |label| Utils.graphql_quote(label) }.join(', ').then { |content| "[#{content}]" }

            super(param_name, label_param_content, with_quotes: false)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitlab-triage-1.19.0 lib/gitlab/triage/graphql_queries/query_param_builders/labels_param_builder.rb
gitlab-triage-1.18.0 lib/gitlab/triage/graphql_queries/query_param_builders/labels_param_builder.rb
gitlab-triage-1.17.0 lib/gitlab/triage/graphql_queries/query_param_builders/labels_param_builder.rb