diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-19 15:10:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-19 15:10:17 +0300 |
commit | a39371aad976d8c57224f743ef1aeb465f508695 (patch) | |
tree | 69276be0bdcfcb06b3f8731e67eb0b452f3dc954 /danger | |
parent | 7866b83bf40c94e8a32d21fdea97a5e142e08f80 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger')
-rw-r--r-- | danger/roulette/Dangerfile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/danger/roulette/Dangerfile b/danger/roulette/Dangerfile index bf5c6e4c821..80e832da508 100644 --- a/danger/roulette/Dangerfile +++ b/danger/roulette/Dangerfile @@ -40,7 +40,6 @@ MARKDOWN OPTIONAL_REVIEW_TEMPLATE = "%{role} review is optional for %{category}".freeze NOT_AVAILABLE_TEMPLATE = 'No %{role} available'.freeze -TIMEZONE_EXPERIMENT = true def note_for_spins_role(spins, role) spins.each do |spin| @@ -81,12 +80,10 @@ categories << :database if helper.gitlab_helper&.mr_labels&.include?('database') if changes.any? project = helper.project_name - timezone_roulette_spins = roulette.spin(project, categories, timezone_experiment: true) random_roulette_spins = roulette.spin(project, categories, timezone_experiment: false) - rows = timezone_roulette_spins.map do |spin| - fallback_spin = random_roulette_spins.find { |random_roulette_spins| random_roulette_spins.category == spin.category } - markdown_row_for_spins(spin.category, [spin, fallback_spin]) + rows = random_roulette_spins.map do |spin| + markdown_row_for_spins(spin.category, [spin]) end markdown(MESSAGE) |