diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-11 12:10:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-11 12:10:00 +0300 |
commit | 564919dfc6c6b352163d4c6dc01827a5f12ffc88 (patch) | |
tree | 9e91b8dde12a3054fffc513c6e0ab0400a039a88 /tooling | |
parent | 2000704b7a6cc9eb37dd597ed03567265eda9308 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rw-r--r-- | tooling/danger/product_intelligence.rb | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/tooling/danger/product_intelligence.rb b/tooling/danger/product_intelligence.rb index 2c005b70de0..9eab611ec68 100644 --- a/tooling/danger/product_intelligence.rb +++ b/tooling/danger/product_intelligence.rb @@ -43,11 +43,7 @@ module Tooling tracking_changed_files = all_changed_files & TRACKING_FILES usage_data_changed_files = all_changed_files.grep(%r{(usage_data)}) - usage_data_changed_files + tracking_changed_files + metrics_changed_files + dictionary_changed_file + snowplow_changed_files - end - - def need_dictionary_changes? - required_dictionary_update_changed_files.any? && dictionary_changed_file.empty? + usage_data_changed_files + tracking_changed_files + metrics_changed_files + snowplow_changed_files end private @@ -56,10 +52,6 @@ module Tooling helper.all_changed_files end - def dictionary_changed_file - all_changed_files.grep(%r{(doc/development/usage_ping/dictionary\.md)}) - end - def metrics_changed_files all_changed_files.grep(%r{((ee/)?config/metrics/.*\.yml)}) end @@ -84,22 +76,6 @@ module Tooling matching_files?(file, extension: '.haml', pattern: %r{data: \{ track}) end end - - def required_dictionary_update_changed_files - dictionary_pattern = Regexp.union( - 'key_path:', - 'description:', - 'product_section:', - 'product_stage:', - 'product_group:', - 'status:', - 'tier:' - ) - - metrics_changed_files.select do |file| - matching_files?(file, extension: '.yml', pattern: dictionary_pattern) - end - end end end end |