diff --git a/plugins/catalog-backend/src/ingestion/processors/BitbucketDiscoveryProcessor.ts b/plugins/catalog-backend/src/ingestion/processors/BitbucketDiscoveryProcessor.ts index 4784aee2ea..fc3898f066 100644 --- a/plugins/catalog-backend/src/ingestion/processors/BitbucketDiscoveryProcessor.ts +++ b/plugins/catalog-backend/src/ingestion/processors/BitbucketDiscoveryProcessor.ts @@ -224,9 +224,11 @@ export async function readBitbucketCloud( return result; } -function parseUrl( - urlString: string, -): { projectSearchPath: RegExp; repoSearchPath: RegExp; catalogPath: string } { +function parseUrl(urlString: string): { + projectSearchPath: RegExp; + repoSearchPath: RegExp; + catalogPath: string; +} { const url = new URL(urlString); const path = url.pathname.substr(1).split('/'); @@ -251,9 +253,7 @@ function readPathParameters(pathParts: string[]): Map { return new Map(Object.entries(vals)); } -function parseBitbucketCloudUrl( - urlString: string, -): { +function parseBitbucketCloudUrl(urlString: string): { workspacePath: string; catalogPath: string; projectSearchPath?: RegExp;