Commit f14f82d2 authored by Ash McKenzie's avatar Ash McKenzie

Lowercase keys and reduce logic

parent d33c1d8a
...@@ -97,7 +97,7 @@ categories = Set.new(changes.keys - [:unknown]) ...@@ -97,7 +97,7 @@ categories = Set.new(changes.keys - [:unknown])
categories << :database if helper.mr_labels.include?('database') categories << :database if helper.mr_labels.include?('database')
# Ensure to spin for UX reviewer for community contributions when ~UX is applied (e.g. to review changes to the UI) # Ensure to spin for UX reviewer for community contributions when ~UX is applied (e.g. to review changes to the UI)
categories << :UX if helper.mr_labels.include?('UX') && helper.mr_labels.include?('Community contribution') categories << :ux if (["UX", "Community contribution"] - helper.mr_labels).empty?
# Ensure to spin for Product Intelligence reviewer when ~"product intelligence::review pending" is applied # Ensure to spin for Product Intelligence reviewer when ~"product intelligence::review pending" is applied
categories << :product_intelligence if helper.mr_labels.include?("product intelligence::review pending") categories << :product_intelligence if helper.mr_labels.include?("product intelligence::review pending")
......
...@@ -6,7 +6,7 @@ SPECIALIZATIONS = { ...@@ -6,7 +6,7 @@ SPECIALIZATIONS = {
database: 'database', database: 'database',
backend: 'backend', backend: 'backend',
frontend: 'frontend', frontend: 'frontend',
UX: 'UX', ux: 'UX',
docs: 'documentation', docs: 'documentation',
qa: 'QA', qa: 'QA',
tooling: 'type::tooling', tooling: 'type::tooling',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment