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
c404ceae
Commit
c404ceae
authored
Jan 07, 2021
by
Austin Regnery
Committed by
Ash McKenzie
Nov 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UX reviewer/maintainer to Danger bot
parent
ec26ccc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
danger/roulette/Dangerfile
danger/roulette/Dangerfile
+19
-0
No files found.
danger/roulette/Dangerfile
View file @
c404ceae
...
...
@@ -123,3 +123,22 @@ if changes.any?
unknown
=
changes
.
fetch
(
:unknown
,
[])
markdown
(
UNKNOWN_FILES_MESSAGE
+
helper
.
markdown_list
(
unknown
))
unless
unknown
.
empty?
end
# Ensure to spin for ux reviewer/maintainer when ~ux is applied (e.g. to review design implementations)
categories
<<
:ux
if
helper
.
gitlab_helper
&
.
mr_labels
&
.
include?
(
'ux'
)
&&
!
categories
.
include?
(
:ux
)
if
changes
.
any?
project
=
helper
.
project_name
random_roulette_spins
=
roulette
.
spin
(
project
,
categories
,
timezone_experiment:
false
)
rows
=
random_roulette_spins
.
map
do
|
spin
|
markdown_row_for_spins
(
spin
.
category
,
[
spin
])
end
markdown
(
MESSAGE
)
markdown
(
CATEGORY_TABLE_HEADER
+
rows
.
join
(
"
\n
"
))
unless
rows
.
empty?
unknown
=
changes
.
fetch
(
:unknown
,
[])
markdown
(
UNKNOWN_FILES_MESSAGE
+
helper
.
markdown_list
(
unknown
))
unless
unknown
.
empty?
end
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