diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2019-02-27 16:39:31 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2019-03-11 12:42:19 +0300 |
commit | 87d19300e3394192d6872243ba8939f2e7ce1ec9 (patch) | |
tree | 74ac760289d57413369fc87a37720ecb27bb4158 /danger/roulette/Dangerfile | |
parent | a89df58527aae693438001ab0800363e7a7d6b07 (diff) |
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/Dangerfile')
-rw-r--r-- | danger/roulette/Dangerfile | 4 |
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 |