Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
84b7888d
Commit
84b7888d
authored
Aug 19, 2020
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Roll-back the roulette timezone experiment
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
78dc6025
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
danger/roulette/Dangerfile
danger/roulette/Dangerfile
+2
-5
No files found.
danger/roulette/Dangerfile
View file @
84b7888d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment