feat/catalog-backend-module-gitlab: create url location only if file exists (fixes #2)

Signed-off-by: Ruslan.Nasyrov <goququ@ya.ru>
This commit is contained in:
Ruslan.Nasyrov
2022-05-17 13:43:00 +05:00
parent ba95c81bff
commit cf864e9e25
3 changed files with 7 additions and 3 deletions
+4 -1
View File
@@ -47,6 +47,9 @@ of your backend.
): Promise<Router> {
const builder = await CatalogBuilder.create(env);
+ builder.addProcessor(
+ GitLabDiscoveryProcessor.fromConfig(env.config, { logger: env.logger })
+ GitLabDiscoveryProcessor.fromConfig(env.config, {
+ logger: env.logger,
+ skipReposWithoutExactFileMatch: true,
+ })
+ );
```