github-tools / github-tools/github
listPullRequests({ state: 'all' }) does not return all pull requests.
- Langage dominant
- JavaScript
- Étoiles
- 3.8k
- Forks
- 809
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
# 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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100