Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-27 12:12:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-27 12:12:12 +0300
commitef96d56ed3c723ac913ea4d8ab6504043f849555 (patch)
tree018927f4c37e829e16e31894ff8169ee58af59d5 /tooling
parent784d3f4422c91e83619e3fd26b0e91c4f0e60a94 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rw-r--r--tooling/danger/product_intelligence.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/tooling/danger/product_intelligence.rb b/tooling/danger/product_intelligence.rb
index f56353cae61..72fc8deac43 100644
--- a/tooling/danger/product_intelligence.rb
+++ b/tooling/danger/product_intelligence.rb
@@ -14,10 +14,16 @@ module Tooling
labels = []
labels << 'product intelligence' unless helper.mr_has_labels?('product intelligence')
- labels << 'product intelligence::review pending' unless helper.mr_has_labels?(WORKFLOW_LABELS)
+ labels << 'product intelligence::review pending' unless has_workflow_labels?
labels
end
+
+ private
+
+ def has_workflow_labels?
+ (WORKFLOW_LABELS & helper.mr_labels).any?
+ end
end
end
end