feat(catalog-backend-module-gitlab): lint

Signed-off-by: alessandro <alessandro.manno@facile.it>
This commit is contained in:
alessandro
2023-03-23 16:38:06 +01:00
parent 66261b4ab4
commit a06c52c511
2 changed files with 11 additions and 4 deletions
@@ -46,7 +46,11 @@ export class GitLabDiscoveryProcessor implements CatalogProcessor {
static fromConfig(
config: Config,
options: { logger: Logger; skipReposWithoutExactFileMatch?: boolean; skipForkedRepos?: boolean },
options: {
logger: Logger;
skipReposWithoutExactFileMatch?: boolean;
skipForkedRepos?: boolean;
},
): GitLabDiscoveryProcessor {
const integrations = ScmIntegrations.fromConfig(config);
const pluginCache =
@@ -143,7 +147,10 @@ export class GitLabDiscoveryProcessor implements CatalogProcessor {
}
}
if (this.skipForkedRepos && project.hasOwnProperty('forked_from_project')) {
if (
this.skipForkedRepos &&
project.hasOwnProperty('forked_from_project')
) {
continue;
}
@@ -23,8 +23,8 @@ export type GitlabGroupDescription = {
};
export type GitlabProjectForkedFrom = {
id: number
}
id: number;
};
export type GitLabProject = {
id: number;