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

Signed-off-by: Ruslan.Nasyrov <goququ@ya.ru>
This commit is contained in:
Ruslan.Nasyrov
2022-05-18 15:04:19 +05:00
parent cf864e9e25
commit 6f8dfe1071
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ of your backend.
+ builder.addProcessor(
+ GitLabDiscoveryProcessor.fromConfig(env.config, {
+ logger: env.logger,
+ skipReposWithoutExactFileMatch: true,
+ skipReposWithoutExactFileMatch: false,
+ })
+ );
```
@@ -80,6 +80,13 @@ export class GitLabClient {
});
if (!response.ok) {
if (response.status >= 500) {
this.logger.debug(
`Unexpected response when fetching ${request.toString()}. Expected 200 but got ${
response.status
} - ${response.statusText}`,
);
}
return false;
}