diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-12 00:10:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-12 00:10:36 +0300 |
commit | a6c51b887647aee631ed0144b3816fe696f2321d (patch) | |
tree | ff0a89cd20bf089ada731974b85af5d3c9da7a70 /danger | |
parent | dcacb5daf7941dd2be05e6f688027baae92a6c81 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger')
-rw-r--r-- | danger/product_intelligence/Dangerfile (renamed from danger/product_analytics/Dangerfile) | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/danger/product_analytics/Dangerfile b/danger/product_intelligence/Dangerfile index b2144e7f034..53948f4931d 100644 --- a/danger/product_analytics/Dangerfile +++ b/danger/product_intelligence/Dangerfile @@ -1,8 +1,8 @@ # frozen_string_literal: true -PRODUCT_ANALYTICS_CHANGED_FILES_MESSAGE = <<~MSG -For the following files, a review from the [Data team and Product Analytics team](https://gitlab.com/groups/gitlab-org/growth/product_analytics/engineers/-/group_members?with_inherited_permissions=exclude) is recommended -Please check the ~"product analytics" [guide](https://docs.gitlab.com/ee/development/product_analytics/usage_ping.html) and reach out to %<product_analytics_engineers_group>s group for a review. +CHANGED_FILES_MESSAGE = <<~MSG +For the following files, a review from the [Data team and Product Intelligence team](https://gitlab.com/groups/gitlab-org/growth/product_intelligence/engineers/-/group_members?with_inherited_permissions=exclude) is recommended +Please check the ~"product intelligence" [guide](https://docs.gitlab.com/ee/development/product_analytics/usage_ping.html) and reach out to %<engineers_group>s group for a review. %<changed_files>s @@ -14,7 +14,7 @@ UPDATE_METRICS_DEFINITIONS_MESSAGE = <<~MSG MSG -PRODUCT_ANALYTICS_ENGINEERS_GROUP = '@gitlab-org/growth/product_analytics/engineers' +ENGINEERS_GROUP = '@gitlab-org/growth/product_intelligence/engineers' tracking_files = [ 'lib/gitlab/tracking.rb', @@ -33,16 +33,16 @@ changed_files = (usage_data_changed_files + snowplow_events_changed_files) if changed_files.any? mention = if helper.draft_mr? - "`#{PRODUCT_ANALYTICS_ENGINEERS_GROUP}`" + "`#{ENGINEERS_GROUP}`" else - PRODUCT_ANALYTICS_ENGINEERS_GROUP + ENGINEERS_GROUP end - warn format(PRODUCT_ANALYTICS_CHANGED_FILES_MESSAGE, changed_files: helper.markdown_list(changed_files), product_analytics_engineers_group: mention) + warn format(CHANGED_FILES_MESSAGE, changed_files: helper.markdown_list(changed_files), engineers_group: mention) warn format(UPDATE_METRICS_DEFINITIONS_MESSAGE) unless helper.changed_files(/usage_ping\.md/).any? - product_analytics_labels = ['product analytics'] - product_analytics_labels << 'product analytics::review pending' unless helper.mr_has_labels?('product analytics::reviewed') + labels = ['product intelligence'] + labels << 'product intelligence::review pending' unless helper.mr_has_labels?('product intelligence::approved') - markdown(helper.prepare_labels_for_mr(product_analytics_labels)) + markdown(helper.prepare_labels_for_mr(labels)) end |