Files
shockbot/vitest.setup.ts
T
Colin McDonnell 7621d6f0e5 tests and better diffs (#163)
* refactor get_review_comments to use reviewThreads graphql api with full thread context and proper diff extraction

* Improve get_review_comments output

* Improve tests and diffs

* GH_TOKEN

* Added back approved_by

* Fix CI
2026-01-23 06:28:22 +00:00

10 lines
285 B
TypeScript

import { resolve } from "node:path";
import { config } from "dotenv";
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;
}