Only include PRs that were merged
Opened this issue · 0 comments
tmr08c commented
Sometimes a pull request will be closed, but not merged. We should filter out closed but not merged pull requests.
Possible Solutions
- Use the Pull Request endpoint instead (#8). The response from this endpoint as a
merged_at
field. Ideally, this would be empty or something when the PR hasn't been merged. - Make an additional call to the Pull Request endpoint to check if merge (https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged) for each PR we have.