github-tools / github-tools/github

listPullRequests({ state: 'all' }) does not return all pull requests.

Đang mở
#593 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
3.8k
Fork
809
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

# 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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript
Lĩnh vực
api
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.