From df3ec6b815a7584202ec4bdd4682ff08a4862e45 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Thu, 19 Feb 2026 04:37:35 +0000 Subject: [PATCH] switch local dev to dedicated GitHub App + Clerk project (#347) * update hookdeck source to github-dev for local development Co-authored-by: Cursor * use GITHUB_APP_SLUG env var for install URLs instead of hardcoded slug Co-authored-by: Cursor * replace GITHUB_TOKEN alias hack with ensureGitHubToken in vitest setup Co-authored-by: Cursor * add neon CLI reference wiki page Co-authored-by: Cursor * use select_target for GitHub App install URL to show account picker Co-authored-by: Cursor * scope repo listing to installation access and invalidate paged cache when repository_selection is "selected", use the REST installation repos list instead of the unscoped GraphQL repositoryOwner query. also filter active repos against the allowed set. add getInstallationReposPage cache invalidation alongside existing getInstallationRepos invalidation in webhooks and the GitHub App callback. Co-authored-by: Cursor * clear getUserInstallations cache on repo add/remove webhooks repository_selection changes (e.g. "all" -> "selected") trigger repositories_added/removed events, so the installation metadata cache must be refreshed to pick up the new selection mode. Co-authored-by: Cursor --------- Co-authored-by: Cursor --- vitest.setup.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vitest.setup.ts b/vitest.setup.ts index 771ac42..de737ee 100644 --- a/vitest.setup.ts +++ b/vitest.setup.ts @@ -1,9 +1,7 @@ import { resolve } from "node:path"; import { config } from "dotenv"; +import { ensureGitHubToken } from "./utils/github.ts"; config({ path: resolve(import.meta.dirname, "../.env") }); -// alias GITHUB_TOKEN to GH_TOKEN for tests -if (!process.env.GH_TOKEN && process.env.GITHUB_TOKEN) { - process.env.GH_TOKEN = process.env.GITHUB_TOKEN; -} +await ensureGitHubToken();