Adds a comment to this issue.
POST /repos/{owner}/{repo}/issues/{issue_number}/comments
The comment text
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request
The created comment
Fetches the comments on this issue.
GET /repos/{owner}/{repo}/issues/{issue_number}/comments
Optionalparams: PaginationParams & { since?: string }Optional filters: since, per_page, page
Optionalsignal: AbortSignalA paged response of comments
Fetches the issue details.
GET /repos/{owner}/{repo}/issues/{issue_number}
Optionalsignal: AbortSignalThe issue object
Allows the resource to be awaited directly, resolving with the issue info. Delegates to IssueResource.get.
Optionalonfulfilled: null | (value: GitHubIssue) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>Updates this issue.
PATCH /repos/{owner}/{repo}/issues/{issue_number}
Fields to update: title, body, state, state_reason, assignees, labels, milestone
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request
The updated issue
Represents a GitHub issue resource with chainable async methods.
Implements
PromiseLike<GitHubIssue>so it can be awaited directly to fetch the issue info, while also exposing sub-resource methods.Example