feat(catalog-backend-module-gitlab): lint
Signed-off-by: alessandro <alessandro.manno@facile.it>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user