Commit 62292aab authored by Rémy Coutable's avatar Rémy Coutable

Allow the product intelligence Dangerfile to work locally

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 8f3d253e
...@@ -81,11 +81,12 @@ matching_changed_files = usage_data_changed_files + ...@@ -81,11 +81,12 @@ matching_changed_files = usage_data_changed_files +
snowplow_changed_files snowplow_changed_files
if matching_changed_files.any? if matching_changed_files.any?
warn format(CHANGED_FILES_MESSAGE, changed_files: helper.markdown_list(matching_changed_files)) warn format(CHANGED_FILES_MESSAGE, changed_files: helper.markdown_list(matching_changed_files))
fail format(UPDATE_DICTIONARY_MESSAGE) if required_dictionary_update_changed_files.any? && dictionary_changed_file.empty? fail format(UPDATE_DICTIONARY_MESSAGE) if required_dictionary_update_changed_files.any? && dictionary_changed_file.empty?
return unless helper.ci?
labels = [] labels = []
labels << 'product intelligence' unless helper.mr_has_labels?('product intelligence') labels << 'product intelligence' unless helper.mr_has_labels?('product intelligence')
labels << 'product intelligence::review pending' unless helper.mr_has_labels?(['product intelligence::approved', 'product intelligence::review pending']) labels << 'product intelligence::review pending' unless helper.mr_has_labels?(['product intelligence::approved', 'product intelligence::review pending'])
......
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