summaryrefslogtreecommitdiff
path: root/danger/specialization_labels
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-12 12:09:33 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-12 12:09:33 +0000
commit26e44c6225a19c3ec4e7d607f92b16d42b437c80 (patch)
tree03c97705ad836eb6a89df451c7f4216d6eb9779a /danger/specialization_labels
parent3159925155a86dfd41000c1467576927c18c8f58 (diff)
downloadgitlab-ce-26e44c6225a19c3ec4e7d607f92b16d42b437c80.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'danger/specialization_labels')
-rw-r--r--danger/specialization_labels/Dangerfile6
1 files changed, 2 insertions, 4 deletions
diff --git a/danger/specialization_labels/Dangerfile b/danger/specialization_labels/Dangerfile
index ac93eb4c3e1..2261fe23e4e 100644
--- a/danger/specialization_labels/Dangerfile
+++ b/danger/specialization_labels/Dangerfile
@@ -1,8 +1,6 @@
# frozen_string_literal: true
-gitlab_danger = GitlabDanger.new(helper.gitlab_helper)
-
-return unless gitlab_danger.ci?
+return unless helper.ci?
SPECIALIZATIONS = {
database: 'database',
@@ -14,7 +12,7 @@ SPECIALIZATIONS = {
ci_template: 'ci::templates'
}.freeze
-labels_to_add = helper.changes_by_category.each_with_object([]) do |(category, _changes), memo|
+labels_to_add = project_helper.changes_by_category.each_with_object([]) do |(category, _changes), memo|
label = SPECIALIZATIONS[category]
memo << label if label && !gitlab.mr_labels.include?(label)