github-tools / github-tools/github
pagination in listIssueComments
- 主要言語
- JavaScript
- スター
- 3.8k
- フォーク
- 809
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start by reading lib/Issue.js at listIssues, listIssueComments, and _requestAllPages to understand the existing pagination entry points. Check how listIssueComments is called and documented, then define a consistent way for callers to retrieve more than one page of comments and verify that the behavior is clear from the public API.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 28/100