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

Merge branch 'am-add-metrics-defintion-to-danger-bot' into 'master'

Add metric definitions to Product Intelligence Dangerfile

See merge request gitlab-org/gitlab!52073
parents cbeb9f70 d7d8922d
...@@ -22,10 +22,13 @@ tracking_files = [ ...@@ -22,10 +22,13 @@ tracking_files = [
'app/helpers/tracking_helper.rb', 'app/helpers/tracking_helper.rb',
'spec/helpers/tracking_helper_spec.rb', 'spec/helpers/tracking_helper_spec.rb',
'app/assets/javascripts/tracking.js', 'app/assets/javascripts/tracking.js',
'spec/frontend/tracking_spec.js' 'spec/frontend/tracking_spec.js',
'generator_templates/usage_metric_definition/metric_definition.yml',
'lib/generators/rails/usage_metric_definition_generator.rb',
'spec/lib/generators/usage_metric_definition_generator_spec.rb'
] ]
usage_data_changed_files = helper.changed_files(/usage_data/) usage_data_changed_files = helper.changed_files(%r{(usage_data)|(config/metrics)|(ee/config/metrics)})
snowplow_events_changed_files = git.modified_files & tracking_files snowplow_events_changed_files = git.modified_files & tracking_files
changed_files = (usage_data_changed_files + snowplow_events_changed_files) changed_files = (usage_data_changed_files + snowplow_events_changed_files)
......
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