# frozen_string_literal: true PROJECT_NAME = helper.config.project_name MESSAGE = < 1 || categories.first != :none random_roulette_spins = roulette.spin(nil, categories) rows = random_roulette_spins.map do |spin| markdown_row_for_spins(spin.category, [spin], show_category_column: show_category_column) end table_header = show_category_column ? TABLE_HEADER_WITH_CATEGORIES : TABLE_HEADER_WITHOUT_CATEGORIES markdown(MESSAGE) if (warnings = warning_list(roulette)) markdown(format(WARNING_MESSAGE, warnings: warnings)) end markdown(TABLE_MARKDOWN + table_header + rows.join("\n")) unless rows.empty? end