diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /danger/roulette | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'danger/roulette')
-rw-r--r-- | danger/roulette/Dangerfile | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/danger/roulette/Dangerfile b/danger/roulette/Dangerfile index 06d2929cd54..c8ea494bc41 100644 --- a/danger/roulette/Dangerfile +++ b/danger/roulette/Dangerfile @@ -2,15 +2,21 @@ require 'digest/md5' -MESSAGE = <<MARKDOWN +REVIEW_ROULETTE_SECTION = <<MARKDOWN ## Reviewer roulette +MARKDOWN + +CATEGORY_TABLE = <<MARKDOWN + +Changes that require review have been detected! -Changes that require review have been detected! A merge request is normally -reviewed by both a reviewer and a maintainer in its primary category (e.g. -~frontend or ~backend), and by a maintainer in all other categories. +Please refer to the table below for assigning reviewers and maintainers suggested by Danger in the specified category: + +| Category | Reviewer | Maintainer | +| -------- | -------- | ---------- | MARKDOWN -CATEGORY_TABLE_HEADER = <<MARKDOWN +POST_TABLE_MESSAGE = <<MARKDOWN To spread load more evenly across eligible reviewers, Danger has picked a candidate for each review slot, based on their timezone. Feel free to @@ -26,12 +32,15 @@ Please consider assigning a reviewer or maintainer who is a Once you've decided who will review this merge request, assign them as a reviewer! Danger does not automatically notify them for you. +MARKDOWN -| Category | Reviewer | Maintainer | -| -------- | -------- | ---------- | +NO_SUGGESTIONS = <<MARKDOWN + +There are no reviewer and maintainer suggestions for the changes in this MR. MARKDOWN UNKNOWN_FILES_MESSAGE = <<MARKDOWN +### Uncategorised files These files couldn't be categorised, so Danger was unable to suggest a reviewer. Please consider creating a merge request to @@ -99,8 +108,14 @@ if changes.any? markdown_row_for_spins(spin.category, [spin]) end - markdown(MESSAGE) - markdown(CATEGORY_TABLE_HEADER + rows.join("\n")) unless rows.empty? + markdown(REVIEW_ROULETTE_SECTION) + + if rows.empty? + markdown(NO_SUGGESTIONS) + else + markdown(CATEGORY_TABLE + rows.join("\n")) + markdown(POST_TABLE_MESSAGE) + end unknown = changes.fetch(:unknown, []) markdown(UNKNOWN_FILES_MESSAGE + helper.markdown_list(unknown)) unless unknown.empty? |