Handle PR comments from mrge

This commit is contained in:
Will Chen
2025-04-23 12:58:23 -07:00
parent 5e29ffc2e2
commit deb3c2d362
3 changed files with 9 additions and 1 deletions

View File

@@ -47,6 +47,9 @@ export async function getSupabaseContext({
SUPABASE_SCHEMA_QUERY
);
const secrets = await supabase.getSecrets(supabaseProjectId);
const secretNames = secrets?.map((secret) => secret.name);
// TODO: include EDGE FUNCTIONS and SECRETS!
const context = `
@@ -58,6 +61,9 @@ export async function getSupabaseContext({
## Publishable key (aka anon key)
${publishableKey}
## Secret names (environmental variables)
${JSON.stringify(secretNames)}
## Schema
${JSON.stringify(schema)}
`;

View File

@@ -79,7 +79,7 @@ export async function refreshSupabaseToken(): Promise<void> {
},
});
} catch (error) {
console.error("Error refreshing Supabase token:", error);
logger.error("Error refreshing Supabase token:", error);
throw error;
}
}