Reputation: 1928
I'm using the GET /repos/:owner/:repo/issues
endpoint to count the closed issues of several Github repositories and to measure their resolution time, but for some reason there are only issues with state : "open"
, which is the default state.
The documentation says that state
Indicates the state of the issues to return. Can be either open, closed, or all. Default: open
Doc : https://developer.github.com/v3/issues/#list-issues-for-a-repository
For example this repository is supposed to have 2 open and 7 closed issues but as you can see the endpoint fails to return the closed ones. Is there a possibility to see the closed issues ?
API : https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues
Web : https://github.com/chartjs/chartjs-plugin-datalabels/issues
Upvotes: 3
Views: 4123
Reputation: 1928
The solution proposed by user orhtej2 in comment works perfectly : https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues?state=closed
Upvotes: 4