Skip to content

GitHubClientOptions

Defined in: clients/github-client/dist/index.d.mts:25

Options for creating a GitHub client.

optional baseUrl?: string

Defined in: clients/github-client/dist/index.d.mts:29

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


optional errors?: ErrorSink

Defined in: clients/github-client/dist/index.d.mts:35

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


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

Defined in: clients/github-client/dist/index.d.mts:31

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

string | URL | Request

RequestInit

Promise<Response>


optional logger?: Logger

Defined in: clients/github-client/dist/index.d.mts:33

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


token: string

Defined in: clients/github-client/dist/index.d.mts:27

The token sent as the bearer credential.