mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
c85932d8d3
Co-authored-by: Rhys Arkins <rhys@arkins.net>
19 lines
619 B
TypeScript
19 lines
619 B
TypeScript
import type { PackageRule, PackageRuleInputConfig } from '../../config/types';
|
|
import { Matcher } from './base';
|
|
import { anyMatchRegexOrMinimatch } from './match';
|
|
|
|
export class RepositoriesMatcher extends Matcher {
|
|
override matches(
|
|
{ repository }: PackageRuleInputConfig,
|
|
{ matchRepositories }: PackageRule
|
|
): boolean | null {
|
|
return anyMatchRegexOrMinimatch(matchRepositories, repository);
|
|
}
|
|
|
|
override excludes(
|
|
{ repository }: PackageRuleInputConfig,
|
|
{ excludeRepositories }: PackageRule
|
|
): boolean | null {
|
|
return anyMatchRegexOrMinimatch(excludeRepositories, repository);
|
|
}
|
|
}
|