Handle PR comments from mrge
This commit is contained in:
@@ -164,6 +164,7 @@ function handleDeepLinkReturn(url: string) {
|
|||||||
"Invalid Protocol",
|
"Invalid Protocol",
|
||||||
`Expected dyad://, got ${parsed.protocol}. Full URL: ${url}`
|
`Expected dyad://, got ${parsed.protocol}. Full URL: ${url}`
|
||||||
);
|
);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (parsed.hostname === "supabase-oauth-return") {
|
if (parsed.hostname === "supabase-oauth-return") {
|
||||||
const token = parsed.searchParams.get("token");
|
const token = parsed.searchParams.get("token");
|
||||||
@@ -183,6 +184,7 @@ function handleDeepLinkReturn(url: string) {
|
|||||||
url,
|
url,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
dialog.showErrorBox("Invalid deep link URL", url);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quit when all windows are closed, except on macOS. There, it's common
|
// Quit when all windows are closed, except on macOS. There, it's common
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ export async function getSupabaseContext({
|
|||||||
SUPABASE_SCHEMA_QUERY
|
SUPABASE_SCHEMA_QUERY
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const secrets = await supabase.getSecrets(supabaseProjectId);
|
||||||
|
const secretNames = secrets?.map((secret) => secret.name);
|
||||||
|
|
||||||
// TODO: include EDGE FUNCTIONS and SECRETS!
|
// TODO: include EDGE FUNCTIONS and SECRETS!
|
||||||
|
|
||||||
const context = `
|
const context = `
|
||||||
@@ -58,6 +61,9 @@ export async function getSupabaseContext({
|
|||||||
## Publishable key (aka anon key)
|
## Publishable key (aka anon key)
|
||||||
${publishableKey}
|
${publishableKey}
|
||||||
|
|
||||||
|
## Secret names (environmental variables)
|
||||||
|
${JSON.stringify(secretNames)}
|
||||||
|
|
||||||
## Schema
|
## Schema
|
||||||
${JSON.stringify(schema)}
|
${JSON.stringify(schema)}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export async function refreshSupabaseToken(): Promise<void> {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error refreshing Supabase token:", error);
|
logger.error("Error refreshing Supabase token:", error);
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user