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
The solution proposed by user orhtej2 in comment works perfectly : https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues?state=closed
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With