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
path: root/lib
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-08-27 15:57:30 +0300
committerLin Jen-Shin <godfat@godfat.org>2019-08-27 15:57:30 +0300
commit7671c592f826f44be5a8a7dc947fba467f5df851 (patch)
treeb7305bbc51e8b0d0538fe9ae0607e2db998c3a62 /lib
parent4ad96a4e927808a3afd7fe9726fa86345c2791e6 (diff)
parentcfef583e943620b8f78a804b484f843e6776cf91 (diff)
Merge branch '65312-use-group-labels-instead-of-legacy-team-labels-for-danger-picking-test-reviewers' into 'master'
Detect the new stage labels in `Gitlab::Danger::Teammate` Closes #65312 See merge request gitlab-org/gitlab-ce!32261
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/danger/teammate.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/danger/teammate.rb b/lib/gitlab/danger/teammate.rb
index 74cbcc11255..8ae4ffdadb0 100644
--- a/lib/gitlab/danger/teammate.rb
+++ b/lib/gitlab/danger/teammate.rb
@@ -39,9 +39,9 @@ module Gitlab
def has_capability?(project, category, kind, labels)
case category
when :test
- area = role[/Test Automation Engineer(?:.*?, (\w+))/, 1]
+ area = role[/Test Automation Engineer(?:.*?, (\w+))/, 1].downcase
- area && labels.any?(area) if kind == :reviewer
+ area && labels.any?("devops::#{area}") if kind == :reviewer
else
capabilities(project).include?("#{kind} #{category}")
end