github-tools / github-tools/github

Cannot fetch all milestones

未關閉
#441 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
3.8k
分支
809
PR 合併指標
30 天內沒有已合併 PR

描述

I want to fetch all milestones even if the data span multiple pages.
However, currently it fetches only first 30 records.
Then I checked source code and found `listMilestones` method uses `this._request` method ([code](https://github.com/github-tools/github/blob/22b889cd48cd281812b020d85f8ea502af69ddfd/lib/Issue.js#L146))
while other listing methods like `listIssues` use `this._requestAllPages`.
Is this intended?

### Versions

- Node - 6.2.0
- github-api - 3.0.0

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start in lib/Issue.js at the listMilestones method referenced by the issue, then compare its request path with listIssues and the _requestAllPages method. Confirm how milestone pagination is handled and verify that fetching milestones returns records from every page rather than only the first 30.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
api
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。