GitHubClientOptions
Defined in: clients/github-client/dist/index.d.mts:25
Options for creating a GitHub client.
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: clients/github-client/dist/index.d.mts:29
The GitHub API base URL; defaults to https://api.github.com.
errors?
Section titled “errors?”
optionalerrors?:ErrorSink
Defined in: clients/github-client/dist/index.d.mts:35
Reports transport failures and unexpected 5xx. Defaults to a no-op.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: clients/github-client/dist/index.d.mts:31
The fetch implementation to use; defaults to the global fetch.
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
logger?
Section titled “logger?”
optionallogger?: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.