github-tools / github-tools/github
listPullRequests({ state: 'all' }) does not return all pull requests.
- 主要語言
- JavaScript
- 星號
- 3.8k
- 分支
- 809
- PR 合併指標
- 30 天內沒有已合併 PR
描述
# Reproduction
```js
const assert = require('assert')
const Github = require('github-api')
const github = new Github()
;(async () => {
const repo = github.getRepo('vuejs', 'rfcs')
const all = (await repo.listPullRequests({ state: 'all' })).data.length
const open = (await repo.listPullRequests({ state: 'open' })).data.length
const closed = (await repo.listPullRequests({ state: 'closed' })).data.length
assert.equal(all, open + closed)
})()
```
# See
https://github.com/vuejs/rfcs/pulls
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Start with the listPullRequests entry point and reproduce the issue using the JavaScript example against vuejs/rfcs. Compare the counts returned for state values all, open, and closed, then trace how the all-state result is obtained. Done means the all result matches the combined open and closed results for this reproduction.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- api
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100