MCPcopy Create free account
hub / github.com/remix-run/react-router / getToken

Function getToken

scripts/utils/github.ts:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const REPO = "react-router";
7
8function getToken(): string {
9 let token = process.env.GITHUB_TOKEN;
10 if (!token) {
11 throw new Error("GITHUB_TOKEN environment variable is required");
12 }
13 return token;
14}
15
16function requestOptions() {
17 return {

Callers 1

requestOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected