Skip to content

Commit c810e7c

Browse files
msukkariclaude
andcommitted
fix(worker): only include private repos in BB Cloud user-repo list
Matches the GitHub and GitLab branches of accountPermissionSyncer, which both pass visibility='private' for the same reason: public repos are gated by the read-side prisma filter via isPublic, so no AccountToRepoPermission row is needed for them. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9c3e6f2 commit c810e7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/backend/src/bitbucket.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ export const getExplicitUserPermissionsForCloudRepo = async (
657657
};
658658

659659
/**
660-
* Returns the UUIDs of all repositories accessible to the authenticated Bitbucket Cloud user.
660+
* Returns the UUIDs of all private repositories accessible to the authenticated Bitbucket Cloud user.
661661
* Used for account-driven permission syncing.
662662
*
663663
* @see https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-user-workspaces-get
@@ -693,7 +693,7 @@ export const getReposForAuthenticatedBitbucketCloudUser = async (
693693
const { data } = await client.apiClient.GET(path, {
694694
params: {
695695
path: { workspace },
696-
query: { role: 'member', ...query },
696+
query: { role: 'member', q: 'is_private=true', ...query },
697697
},
698698
});
699699
return data;

0 commit comments

Comments
 (0)