GitHubClientOptions
Defined in: utils.ts:9
Options for creating a GitHub client.
Properties
Section titled “Properties”baseUrl?
Section titled “baseUrl?”
optionalbaseUrl?:string
Defined in: utils.ts:13
The GitHub API base URL; defaults to https://api.github.com.
errors?
Section titled “errors?”
optionalerrors?:ErrorSink
Defined in: utils.ts:19
Reports transport failures and unexpected 5xx. Defaults to a no-op.
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Defined in: utils.ts:15
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: 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.