Sha256: 052874936cff9c31b20e121c7dea9ffa35646d8be8ead2a9d264dcc377ec8c36

Contents?: true

Size: 396 Bytes

Versions: 7

Compression:

Stored size: 396 Bytes

Contents

require_relative 'sequence/expansion'

module Gitlab
  module Triage
    module ExpandCondition
      module Sequence
        def self.expand(conditions)
          labels = conditions[:labels]

          return conditions unless labels

          Expansion.perform(labels).map do |new_labels|
            conditions.merge(labels: new_labels)
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gitlab-triage-0.12.0 lib/gitlab/triage/expand_condition/sequence.rb
gitlab-triage-0.11.0 lib/gitlab/triage/expand_condition/sequence.rb
gitlab-triage-0.10.0 lib/gitlab/triage/expand_condition/sequence.rb
gitlab-triage-0.9.0 lib/gitlab/triage/expand_condition/sequence.rb
gitlab-triage-0.8.1 lib/gitlab/triage/expand_condition/sequence.rb
gitlab-triage-0.8.0 lib/gitlab/triage/expand_condition/sequence.rb
gitlab-triage-0.7.0 lib/gitlab/triage/expand_condition/sequence.rb