From 96bdeb3c7b04e95ecabaa0253deddd2a22e14afe Mon Sep 17 00:00:00 2001 From: Dax Date: Fri, 31 Oct 2025 15:07:36 -0400 Subject: OpenTUI is here (#2685) --- packages/function/src/api.ts | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'packages/function/src/api.ts') diff --git a/packages/function/src/api.ts b/packages/function/src/api.ts index 572ac3cab..6f00dae9a 100644 --- a/packages/function/src/api.ts +++ b/packages/function/src/api.ts @@ -238,10 +238,16 @@ export default new Hono<{ Bindings: Env }>() // Lookup installation const octokit = new Octokit({ auth: appAuth.token }) - const { data: installation } = await octokit.apps.getRepoInstallation({ owner, repo }) + const { data: installation } = await octokit.apps.getRepoInstallation({ + owner, + repo, + }) // Get installation token - const installationAuth = await auth({ type: "installation", installationId: installation.id }) + const installationAuth = await auth({ + type: "installation", + installationId: installation.id, + }) return c.json({ token: installationAuth.token }) }) @@ -274,10 +280,16 @@ export default new Hono<{ Bindings: Env }>() // Lookup installation const appClient = new Octokit({ auth: appAuth.token }) - const { data: installation } = await appClient.apps.getRepoInstallation({ owner, repo }) + const { data: installation } = await appClient.apps.getRepoInstallation({ + owner, + repo, + }) // Get installation token - const installationAuth = await auth({ type: "installation", installationId: installation.id }) + const installationAuth = await auth({ + type: "installation", + installationId: installation.id, + }) return c.json({ token: installationAuth.token }) } catch (e: any) { -- cgit v1.2.3