summaryrefslogtreecommitdiffhomepage
path: root/packages/function
diff options
context:
space:
mode:
authorDax <[email protected]>2025-10-31 15:07:36 -0400
committerGitHub <[email protected]>2025-10-31 15:07:36 -0400
commit96bdeb3c7b04e95ecabaa0253deddd2a22e14afe (patch)
treec37898ee62e8c4f84f5d9abd4c644b1ec7066963 /packages/function
parent81c617770d8595978b497a9cf3c0a5316b108352 (diff)
downloadopencode-96bdeb3c7b04e95ecabaa0253deddd2a22e14afe.tar.gz
opencode-96bdeb3c7b04e95ecabaa0253deddd2a22e14afe.zip
OpenTUI is here (#2685)
Diffstat (limited to 'packages/function')
-rw-r--r--packages/function/src/api.ts20
1 files changed, 16 insertions, 4 deletions
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) {