From e8c37ccdbd7eb4d186c6cec75a8a882a8dbb26c9 Mon Sep 17 00:00:00 2001
From: Andrew Valleteau
Date: Sat, 27 Sep 2025 06:59:47 +0200
Subject: [PATCH] fix(studio): refetch GitHub repositories after new install
(#39021)
* fix(studio): add refetch after github pop-up close
* fix: github.ts
* fix: add delay
* chore: increase to 2s
* chore: remove debug logs
---
.../GitHubIntegrationConnectionForm.tsx | 41 ++++++++++++++-----
.../integrations/github-repositories-query.ts | 3 +-
apps/studio/lib/github.ts | 23 +++++++++--
3 files changed, 51 insertions(+), 16 deletions(-)
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
index 5c69fa0dc3..152da94ad0 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
@@ -47,6 +47,7 @@ import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
const GITHUB_ICON = (