diff options
Diffstat (limited to 'danger/labels/Dangerfile')
-rw-r--r-- | danger/labels/Dangerfile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/danger/labels/Dangerfile b/danger/labels/Dangerfile index e46d50114..b10259cd0 100644 --- a/danger/labels/Dangerfile +++ b/danger/labels/Dangerfile @@ -14,18 +14,18 @@ required_labels = %w[devops::create] required_labels << "group::gitaly" if GITALY_TEAM.include?(gitlab.mr_author) TYPE_TO_LABEL = { - 'added' => ['feature'], + 'added' => %w[feature feature::addition], 'fixed' => ['bug'], - 'changed' => ['backstage'], - 'deprecated' => ['backstage'], + 'changed' => %w[feature feature::maintenance], + 'deprecated' => %w[feature feature::maintenance], 'security' => ['security'], - 'removed' => ['backstage'], - 'performance' => ['performance', 'backstage'], - 'other' => ['backstage'], + 'removed' => %w[feature feature::maintenance], + 'performance' => %w[feature feature::maintenance performance], + 'other' => ['tooling'], nil => [] } -INHERIRABLE_LABELS = TYPE_TO_LABEL.values.flatten + %w[Deliverable] +INHERITABLE_LABELS = TYPE_TO_LABEL.values.flatten + %w[Deliverable] def inherited_labels gitlab.api @@ -33,7 +33,7 @@ def inherited_labels .flat_map { |i| i.labels } .compact .uniq - .select { |label| INHERIRABLE_LABELS.include?(label) } + .select { |label| INHERITABLE_LABELS.include?(label) } end required_labels.concat(TYPE_TO_LABEL[changelog_entry["type"]]) |