Skip to content
Snippets Groups Projects
Commit f9cf1264 authored by Albert Salim's avatar Albert Salim
Browse files

Add maintainer engineering_productivity to roulette

parent 15c1a003
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -94,6 +94,7 @@ def has_capability?(project, category, kind, labels)
when :engineering_productivity
return false unless role[/Engineering Productivity/]
return true if kind == :reviewer
return true if capabilities(project).include?("#{kind} engineering_productivity")
 
capabilities(project).include?("#{kind} backend")
else
Loading
Loading
Loading
Loading
@@ -121,6 +121,14 @@
end
end
 
context 'when capabilities include maintainer engineering productivity' do
let(:capabilities) { ['maintainer engineering_productivity'] }
it '#maintainer? returns true' do
expect(subject.maintainer?(project, :engineering_productivity, labels)).to be_truthy
end
end
context 'when capabilities include trainee_maintainer backend' do
let(:capabilities) { ['trainee_maintainer backend'] }
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment