Commit c404ceae authored by Austin Regnery's avatar Austin Regnery Committed by Ash McKenzie

Add UX reviewer/maintainer to Danger bot

parent ec26ccc0
...@@ -123,3 +123,22 @@ if changes.any? ...@@ -123,3 +123,22 @@ if changes.any?
unknown = changes.fetch(:unknown, []) unknown = changes.fetch(:unknown, [])
markdown(UNKNOWN_FILES_MESSAGE + helper.markdown_list(unknown)) unless unknown.empty? markdown(UNKNOWN_FILES_MESSAGE + helper.markdown_list(unknown)) unless unknown.empty?
end end
# Ensure to spin for ux reviewer/maintainer when ~ux is applied (e.g. to review design implementations)
categories << :ux if helper.gitlab_helper&.mr_labels&.include?('ux') && !categories.include?(:ux)
if changes.any?
project = helper.project_name
random_roulette_spins = roulette.spin(project, categories, timezone_experiment: false)
rows = random_roulette_spins.map do |spin|
markdown_row_for_spins(spin.category, [spin])
end
markdown(MESSAGE)
markdown(CATEGORY_TABLE_HEADER + rows.join("\n")) unless rows.empty?
unknown = changes.fetch(:unknown, [])
markdown(UNKNOWN_FILES_MESSAGE + helper.markdown_list(unknown)) unless unknown.empty?
end
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