Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Merge branch 'feat/branch-management-2' into feat/branch-management-3

Joshen Limfc54a815bcc9
diff --cc studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingButton.tsx
index ab2392fb711,ebe6a994c03..a01d6562651
--- a/studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingButton.tsx
+++ b/studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingButton.tsx
@@@ -43,9 -43,11 +43,11 @@@ const EnableBranchingButton = () =>
},
})
- // [Joshen TODO] To be dynamic
- const isBranchingAllowed = true
+ const hasAccessToBranching =
+ selectedOrg?.opt_in_tags?.includes('PREVIEW_BRANCHES_OPT_IN') ?? false
+ const hasGithubIntegrationInstalled =
+ integrations?.some((integration) => integration.integration.name === 'GitHub') ?? false
const githubIntegration = integrations?.find(
(integration) =>
integration.integration.name === 'GitHub' &&