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
7b228d9f
Commit
7b228d9f
authored
Sep 07, 2020
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only add labels in the list
Otherwise we'll be adding ~none
parent
d08a9405
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
danger/specialization_labels/Dangerfile
danger/specialization_labels/Dangerfile
+3
-2
No files found.
danger/specialization_labels/Dangerfile
View file @
7b228d9f
...
...
@@ -14,8 +14,9 @@ SPECIALIZATIONS = {
}.
freeze
labels_to_add
=
helper
.
changes_by_category
.
each_with_object
([])
do
|
(
category
,
_changes
),
memo
|
label
=
SPECIALIZATIONS
.
fetch
(
category
,
category
.
to_s
)
memo
<<
label
unless
gitlab
.
mr_labels
.
include?
(
label
)
label
=
SPECIALIZATIONS
[
category
]
memo
<<
label
if
label
&&
!
gitlab
.
mr_labels
.
include?
(
label
)
end
if
labels_to_add
.
any?
...
...
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