switch local dev to dedicated GitHub App + Clerk project (#347)
* update hookdeck source to github-dev for local development Co-authored-by: Cursor <cursoragent@cursor.com> * use GITHUB_APP_SLUG env var for install URLs instead of hardcoded slug Co-authored-by: Cursor <cursoragent@cursor.com> * replace GITHUB_TOKEN alias hack with ensureGitHubToken in vitest setup Co-authored-by: Cursor <cursoragent@cursor.com> * add neon CLI reference wiki page Co-authored-by: Cursor <cursoragent@cursor.com> * use select_target for GitHub App install URL to show account picker Co-authored-by: Cursor <cursoragent@cursor.com> * 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 <cursoragent@cursor.com> * 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 <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
pullfrog[bot]
parent
4a9d83b102
commit
df3ec6b815
+2
-4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user