diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 22:00:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 22:00:14 +0300 |
commit | 05f0ebba3a2c8ddf39e436f412dc2ab5bf1353b2 (patch) | |
tree | 11d0f2a6ec31c7793c184106cedc2ded3d9a2cc5 /danger/ci_templates/Dangerfile | |
parent | ec73467c23693d0db63a797d10194da9e72a74af (diff) |
Add latest changes from gitlab-org/gitlab@15-8-stable-eev15.8.0-rc42
Diffstat (limited to 'danger/ci_templates/Dangerfile')
-rw-r--r-- | danger/ci_templates/Dangerfile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/danger/ci_templates/Dangerfile b/danger/ci_templates/Dangerfile index ace9905e91d..bc8bba388c6 100644 --- a/danger/ci_templates/Dangerfile +++ b/danger/ci_templates/Dangerfile @@ -1,6 +1,6 @@ # frozen_string_literal: true -TEMPLATE_MESSAGE = <<~MSG +CI_CD_TEMPLATE_MESSAGE = <<~MSG This merge request requires a CI/CD Template review. To make sure these changes are reviewed, take the following steps: @@ -11,7 +11,7 @@ changes are reviewed, take the following steps: 1. Assign and `@` mention the CI/CD Template reviewer suggested by Reviewer Roulette. MSG -TEMPLATE_FILES_MESSAGE = <<~MSG +CI_CD_TEMPLATE_FILES_MESSAGE = <<~MSG The following files require a review from the CI/CD Templates maintainers: MSG @@ -20,9 +20,12 @@ return unless helper.ci? template_paths_to_review = helper.changes_by_category[:ci_template] if helper.mr_labels.include?('ci::templates') || template_paths_to_review.any? - message 'This merge request adds or changes files that require a ' \ - 'review from the CI/CD Templates maintainers.' + message('This merge request adds or changes files that require a ' \ + 'review from the CI/CD Templates maintainers.') - markdown(TEMPLATE_MESSAGE) - markdown(TEMPLATE_FILES_MESSAGE + helper.markdown_list(template_paths_to_review)) if template_paths_to_review.any? + markdown(CI_CD_TEMPLATE_MESSAGE) + + if template_paths_to_review.any? + markdown(CI_CD_TEMPLATE_FILES_MESSAGE + helper.markdown_list(template_paths_to_review)) + end end |