chore(code): support multiple gh integrations in cloud repo picker#1586
Merged
VojtechBartos merged 1 commit intomainfrom Apr 9, 2026
Merged
chore(code): support multiple gh integrations in cloud repo picker#1586VojtechBartos merged 1 commit intomainfrom
VojtechBartos merged 1 commit intomainfrom
Conversation
skoob13
approved these changes
Apr 9, 2026
| return { integrationId: integration.id, repos }; | ||
| }, | ||
| enabled: !!client, | ||
| staleTime: 60 * 1000, |
Contributor
There was a problem hiding this comment.
1m revalidation might be too frequent for GitHub integrations. Does it revalidate when I focus the window?
Member
Author
There was a problem hiding this comment.
yeah it does when data are stale, any suggestion for stale time? 10m or 30m?
Member
Author
There was a problem hiding this comment.
or we can just disable refetchOnWindowFocus
Member
Author
There was a problem hiding this comment.
setting up 5mins + disable refetch on focus
92eedac to
68e72b0
Compare
skoob13
reviewed
Apr 9, 2026
| }, | ||
| enabled: !!client, | ||
| staleTime: 5 * 60 * 1000, | ||
| refetchOnWindowFocus: false, |
Contributor
There was a problem hiding this comment.
I'd sitll keep it. 5 minutes with revaliation on focus makes sense to me.
68e72b0 to
7648688
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The cloud repository picker only shows repos from a single GitHub integration (the first one found via
.find()). Users can have multiple GitHub integrations connected to a project (e.g., personal and org), but repos from additional integrations are invisible.Fix
owner/repoformat in the picker trigger instead of truncating to just the repo nameVerification
pnpm typecheck— cleanpnpm lint— no fixes appliedpnpm --filter code test— 625 tests passShowcase
code-multiple-repos.mov