Added project pattern for GitLab provider to be able to filter projects on more granular level.

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2022-08-02 13:10:38 +02:00
parent eae2f7c732
commit 986fcb39d8
@@ -31,8 +31,9 @@ function readGitlabConfig(id: string, config: Config): GitlabProviderConfig {
const branch = config.getOptionalString('branch') ?? 'master';
const catalogFile =
config.getOptionalString('entityFilename') ?? 'catalog-info.yaml';
const projectPattern =
new RegExp(config.getString('projectPattern')) ?? /[\s\S]*/;
const projectPattern = new RegExp(
config.getString('projectPattern') ?? /[\s\S]*/,
);
return {
id,