Skip to content

GitHubClientOptions

Defined in: utils.ts:9

Options for creating a GitHub client.

optional baseUrl?: string

Defined in: utils.ts:13

The GitHub API base URL; defaults to https://api.github.com.


optional errors?: ErrorSink

Defined in: utils.ts:19

Reports transport failures and unexpected 5xx. Defaults to a no-op.


optional fetch?: (input, init?) => Promise<Response>

Defined in: utils.ts:15

The fetch implementation to use; defaults to the global fetch.

string | URL | Request

RequestInit

Promise<Response>


optional logger?: Logger

Defined in: utils.ts:17

Structured logger for request/response diagnostics. Defaults to a no-op.


token: string

Defined in: utils.ts:11

The token sent as the bearer credential.