diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-27 12:12:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-27 12:12:12 +0300 |
commit | ef96d56ed3c723ac913ea4d8ab6504043f849555 (patch) | |
tree | 018927f4c37e829e16e31894ff8169ee58af59d5 /tooling | |
parent | 784d3f4422c91e83619e3fd26b0e91c4f0e60a94 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'tooling')
-rw-r--r-- | tooling/danger/product_intelligence.rb | 8 |
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 |