mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 10:25:06 +03:00
Update integration-utils.ts
This commit is contained in:
1 parent
b7098af30c
commit
02b43aa423
1 file changed
+3
-1
@@ -45,7 +45,9 @@ export async function getInitialMigrationSQLFromGitHubRepo(
|
||||
const baseGitHubUrl = `https://api.github.com/repos/${owner}/${repo}/contents/${path}`
|
||||
const supabaseFolderUrl = `${baseGitHubUrl}/supabase?ref=${branch}`
|
||||
const supabaseMigrationsPath = `supabase/migrations` // TODO: read this from the `supabase/config.toml` file
|
||||
const migrationsFolderUrl = `${baseGitHubUrl}/${supabaseMigrationsPath}?ref=${branch}`
|
||||
const migrationsFolderUrl = `${baseGitHubUrl}/${supabaseMigrationsPath}${
|
||||
branch ? `?ref=${branch}` : ``
|
||||
}`
|
||||
|
||||
const [supabaseFilesResponse, migrationFilesResponse] = await Promise.all([
|
||||
fetchGitHub<File[]>(supabaseFolderUrl),
|
||||
|
||||
Reference in new issue
Block a user