Skip to content
This repository was archived by the owner on Mar 29, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/github-api/implementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GitHubApi } from "./api";
import { GraphQLClient, gql } from "graphql-request";

const ThrottledOctokit = Octokit.plugin(throttling as any);
const graphQLEndpoint = "https://api.github.com/graphql";
const graphQLEndpoint = "https://<github enterprise domain>/api/graphql";

interface ThrottlingOptions {
method: string;
Expand All @@ -16,6 +16,7 @@ interface ThrottlingOptions {

export function buildGitHubApi(token: string): GitHubApi {
const octokit: Octokit = new ThrottledOctokit({
baseUrl: 'https://<github enterprise domain>/api/v3',
auth: `token ${token}`,
// https://developer.github.com/v3/pulls/#list-pull-requests
// Enable Draft Pull Request API.
Expand Down