Class IssueResource

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.

// Await directly to get issue info
const issue = await gh.repo('octocat', 'Hello-World').issue(1);

// Get comments on an issue
const comments = await gh.repo('octocat', 'Hello-World').issue(1).comments();

Implements

Methods

Methods