Update the API Report to add the groupPatterns new configuration

Signed-off-by: Alexandre Fournier <vaceal@gmail.com>
This commit is contained in:
Alexandre Fournier
2025-03-26 20:10:53 -04:00
parent 8dfe76f30b
commit 1d0c9ba472
2 changed files with 3 additions and 2 deletions
@@ -112,6 +112,7 @@ export type GitlabProviderConfig = {
projectPattern: RegExp;
userPattern: RegExp;
groupPattern: RegExp;
groupPatterns: RegExp[];
allowInherited?: boolean;
relations?: string[];
orgEnabled?: boolean;
@@ -280,7 +280,7 @@ export class GitlabDiscoveryEntityProvider implements EntityProvider {
/**
* Deduplicate a list of projects based on their id.
*
* @param projects a list of projects to be deduplicated
* @param projects - a list of projects to be deduplicated
* @returns a list of projects with unique id
*/
private deduplicateProjects(projects: GitLabProject[]): GitLabProject[] {
@@ -296,7 +296,7 @@ export class GitlabDiscoveryEntityProvider implements EntityProvider {
/**
* Retrieve a list of projects that match configuration.
*
* @param group a full path of a GitLab group, can be empty
* @param group - a full path of a GitLab group, can be empty
* @returns An array of project to be processed and the number of project scanned
*/
private async GetProjectsToProcess(group: string) {