summaryrefslogtreecommitdiff
path: root/danger/roulette
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2019-02-27 14:39:31 +0100
committerMarin Jankovski <maxlazio@gmail.com>2019-03-11 10:42:19 +0100
commit87d19300e3394192d6872243ba8939f2e7ce1ec9 (patch)
tree74ac760289d57413369fc87a37720ecb27bb4158 /danger/roulette
parenta89df58527aae693438001ab0800363e7a7d6b07 (diff)
downloadgitlab-ce-87d19300e3394192d6872243ba8939f2e7ce1ec9.tar.gz
Set specific reviewers for single codebase effort
This extends Danger so it informs MR authors that single codebase merge requests need to be approved by a specific group of engineers. Co-authored-by: Yorick Peterse <yorickpeterse@gmail.com>
Diffstat (limited to 'danger/roulette')
-rw-r--r--danger/roulette/Dangerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/danger/roulette/Dangerfile b/danger/roulette/Dangerfile
index 6cf54d0f854..808bc96a0a0 100644
--- a/danger/roulette/Dangerfile
+++ b/danger/roulette/Dangerfile
@@ -58,7 +58,9 @@ changes = helper.changes_by_category
changes.delete(:none)
categories = changes.keys - [:unknown]
-unless changes.empty?
+# Single codebase MRs are reviewed using a slightly different process, so we
+# disable the review roulette for such MRs.
+if changes.any? && !gitlab.mr_labels.include?('single codebase')
team =
begin
helper.project_team