fix(discovery): fix bug in event-based discovery that causes unnecessary API calls to Bitbucket Cloud
Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
+2
@@ -326,6 +326,8 @@ export class BitbucketCloudEntityProvider implements EntityProvider {
|
||||
const optRepoFilter = repoSlug ? ` repo:${repoSlug}` : '';
|
||||
const query = `"${catalogFilename}" path:${catalogPath}${optRepoFilter}`;
|
||||
|
||||
if (repoSlug) return this.processQuery(workspace, query);
|
||||
|
||||
const projects = this.client
|
||||
.listProjectsByWorkspace(workspace)
|
||||
.iterateResults();
|
||||
|
||||
Reference in New Issue
Block a user