module Gitlab::Triage::ExpandCondition::Sequence
Constants
- PATTERN
Public Class Methods
expand(conditions)
click to toggle source
# File lib/gitlab/triage/expand_condition/sequence.rb, line 9 def self.expand(conditions) labels = conditions[:labels] return conditions unless labels expansion = Expansion.new(PATTERN) do |(lower, upper)| Integer(lower)..Integer(upper) end expansion.perform(labels).map do |new_labels| conditions.merge(labels: new_labels) end end