Commit 1e004d69 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix_product_intelligenc_dangerbot_pipeline' into 'master'

Fix dangerbot pipeline failures

See merge request gitlab-org/gitlab!55374
parents a4ffc2a2 a887b81f
...@@ -69,7 +69,7 @@ snowplow_changed_files = all_changed_files.select do |file| ...@@ -69,7 +69,7 @@ snowplow_changed_files = all_changed_files.select do |file|
matching_files?(file, extension: '.haml', pattern: %r{data: \{ track}) matching_files?(file, extension: '.haml', pattern: %r{data: \{ track})
end end
required_dictionary_update_changed_files = dictionary_changed_file.select do |file| required_dictionary_update_changed_files = metrics_changed_files.select do |file|
matching_files?(file, extension: '.yml', pattern: dictionary_pattern) matching_files?(file, extension: '.yml', pattern: dictionary_pattern)
end end
...@@ -89,7 +89,7 @@ if matching_changed_files.any? ...@@ -89,7 +89,7 @@ if matching_changed_files.any?
warn format(CHANGED_FILES_MESSAGE, changed_files: helper.markdown_list(matching_changed_files), engineers_group: mention) warn format(CHANGED_FILES_MESSAGE, changed_files: helper.markdown_list(matching_changed_files), engineers_group: mention)
fail format(UPDATE_DICTIONARY_MESSAGE) if metrics_changed_files.any? && required_dictionary_update_changed_files.empty? fail format(UPDATE_DICTIONARY_MESSAGE) if required_dictionary_update_changed_files.any? && dictionary_changed_file.empty?
labels = ['product intelligence'] labels = ['product intelligence']
labels << 'product intelligence::review pending' unless helper.mr_has_labels?('product intelligence::approved') labels << 'product intelligence::review pending' unless helper.mr_has_labels?('product intelligence::approved')
......
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