diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-16 21:12:05 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-16 21:12:05 +0000 |
commit | f9e0126cad562c7199e26e84a1540df3bc849e55 (patch) | |
tree | 5390ccbadaa4f1f49eeb44c45b805f26bd12ceef /danger | |
parent | c1436508fa677bbe850e1e13761d2e6b791c698c (diff) | |
download | gitlab-ce-f9e0126cad562c7199e26e84a1540df3bc849e55.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger')
-rw-r--r-- | danger/roulette/Dangerfile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/danger/roulette/Dangerfile b/danger/roulette/Dangerfile index 723bd787450..4eb1d987d84 100644 --- a/danger/roulette/Dangerfile +++ b/danger/roulette/Dangerfile @@ -48,10 +48,18 @@ Please consider creating a merge request to for them. MARKDOWN +def group_not_available_template(slack_channel, gitlab_group) + <<~TEMPLATE + No engineer is available for automated assignment, please reach out to `#{slack_channel}` slack channel or mention `#{gitlab_group}` for assistance. + TEMPLATE +end + OPTIONAL_REVIEW_TEMPLATE = '%{role} review is optional for %{category}' NOT_AVAILABLE_TEMPLATES = { default: 'No %{role} available', - product_intelligence: "No engineer is available for automated assignment, please reach out to `#g_product_intelligence` slack channel or mention `@gitlab-org/growth/product-intelligence/engineers` for assistance." + product_intelligence: group_not_available_template('#g_product_intelligence', '@gitlab-org/growth/product-intelligence/engineers'), + integrations_be: group_not_available_template('#g_ecosystem_integrations', '@gitlab-org/ecosystem-stage/integrations'), + integrations_fe: group_not_available_template('#g_ecosystem_integrations', '@gitlab-org/ecosystem-stage/integrations') }.freeze def note_for_spins_role(spins, role, category) |