Exports GitHub API URLs for use in client code.
// Source: https://github.com/anthropics/claude-code-action | License: MIT | Copyright 2025 Anthropic, PBC // Provided via justclaw.it.com; keep this notice with the code. export const GITHUB_API_URL = process.env.GITHUB_API_URL || "https://api.github.com"; export const GITHUB_SERVER_URL = process.env.GITHUB_SERVER_URL || "https://github.com"; // GraphQL base URL for @octokit/graphql. GitHub Actions exposes the full GraphQL // endpoint in GITHUB_GRAPHQL_URL (e.g. "https://HOST/api/graphql"), while // @octokit/graphql appends "/graphql" to whatever baseUrl it is given, so a // single trailing "/graphql" is stripped here to avoid "/graphql/graphql". // When GITHUB_GRAPHQL_URL is unset we fall back to GITHUB_API_URL, preserving the // existing behavior where @octokit/graphql rewrites a R ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key