Creates a comment on a gist.
POST /gists/{gist_id}/comments
Optionalsignal: AbortSignalLists comments on a gist.
GET /gists/{gist_id}/comments
Optionalparams: { page?: number; per_page?: number }Optionalsignal: AbortSignalLists commits for a gist.
GET /gists/{gist_id}/commits
Optionalparams: { page?: number; per_page?: number }Optionalsignal: AbortSignalDeletes a gist.
DELETE /gists/{gist_id}
Optionalsignal: AbortSignalDeletes a comment on a gist.
DELETE /gists/{gist_id}/comments/{comment_id}
Optionalsignal: AbortSignalForks a gist.
POST /gists/{gist_id}/forks
Optionalsignal: AbortSignalLists forks of a gist.
GET /gists/{gist_id}/forks
Optionalparams: { page?: number; per_page?: number }Optionalsignal: AbortSignalFetches a single gist.
GET /gists/{gist_id}
Optionalsignal: AbortSignalChecks whether the authenticated user has starred a gist.
Returns true if starred (HTTP 204), false if not (HTTP 404).
GET /gists/{gist_id}/star
Optionalsignal: AbortSignalStars a gist for the authenticated user.
PUT /gists/{gist_id}/star
Optionalsignal: AbortSignalAllows the resource to be awaited directly, resolving with the gist. Delegates to GistResource.get.
Optionalonfulfilled: null | (value: GitHubGist) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>Unstars a gist for the authenticated user.
DELETE /gists/{gist_id}/star
Optionalsignal: AbortSignalUpdates an existing gist.
PATCH /gists/{gist_id}
Optionalsignal: AbortSignalUpdates a comment on a gist.
PATCH /gists/{gist_id}/comments/{comment_id}
Optionalsignal: AbortSignal
Provides access to GitHub Gist endpoints.
Obtained via
GitHubClient.gist(gistId)for single-gist operations, or use the static list methods directly on the client.Example