Class: Gitlab::Dangerfiles::Capability::ImportIntegrateFE

Inherits:
Gitlab::Dangerfiles::Capability show all
Defined in:
lib/gitlab/dangerfiles/capability.rb

Instance Attribute Summary

Attributes inherited from Gitlab::Dangerfiles::CapabilityStruct

#category, #kind, #labels, #project

Instance Method Summary collapse

Methods inherited from Gitlab::Dangerfiles::Capability

for

Instance Method Details

#has_capability?(teammate) ⇒ Boolean

Returns:

  • (Boolean)


71
72
73
74
# File 'lib/gitlab/dangerfiles/capability.rb', line 71

def has_capability?(teammate)
  kind == :reviewer &&
    teammate.role.match?(/Frontend Engineer.+Manage:Import and Integrate/)
end