Skip to content

Commit 320034f

Browse files
Fixes issues not properly being restricted to open repos in Start Work
1 parent b310900 commit 320034f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/plus/integrations/integrationService.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,14 @@ export class IntegrationService implements Disposable {
594594
? integrationIds
595595
: [...Object.values(HostingIntegrationId), ...Object.values(IssueIntegrationId)]) {
596596
const integration = await this.get(integrationId);
597-
if (integration == null) continue;
597+
if (
598+
integration == null ||
599+
(options?.openRepositoriesOnly &&
600+
isHostingIntegrationId(integrationId) &&
601+
!openRemotesByIntegrationId.has(integrationId))
602+
) {
603+
continue;
604+
}
598605

599606
integrations.set(
600607
integration,

0 commit comments

Comments
 (0)