github-tools / github-tools/github
pagination in listIssueComments
Open
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 809
- PR merge metrics
- No merged PRs in 30d
Description
I need to fetch all comments (>50) in an issue, but I don't know how to pass params like
```js
{
per_page: 100,
page: 2
}
```
to [`listIssueComments`](https://github.com/michael/github/blob/master/lib/Issue.js#L65).
I also find that there is a method called `_requestAllPages`, but only applied to [`listIssues`](https://github.com/michael/github/blob/master/lib/Issue.js#L43).
Is is better to add options params or use `_requestAllPages` in `listIssueComments`?
Thanks a lot.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.