lib/gitlab/dangerfiles/category.rb in gitlab-dangerfiles-3.8.0 vs lib/gitlab/dangerfiles/category.rb in gitlab-dangerfiles-3.9.0
- old
+ new
@@ -12,12 +12,12 @@
def self.name_to_class
@name_to_class ||= {
none: None,
test: Test,
tooling: Tooling,
- integrations_be: IntegrationsBE,
- integrations_fe: IntegrationsFE,
+ import_integrate_be: ImportIntegrateBE,
+ import_integrate_fe: ImportIntegrateFE,
ux: UX,
}.freeze
end
private_class_method :name_to_class
@@ -69,19 +69,19 @@
teammate.capabilities(project).include?("#{kind} backend")
end
end
end
- class IntegrationsBE < Category
+ class ImportIntegrateBE < Category
private
def has_particular_capability?(teammate)
kind == :reviewer &&
teammate.role.match?(/Backend Engineer.+Manage:Integrations/)
end
end
- class IntegrationsFE < Category
+ class ImportIntegrateFE < Category
private
def has_particular_capability?(teammate)
kind == :reviewer &&
teammate.role.match?(/Frontend Engineer.+Manage:Integrations/)