Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to see the closed issues with the Github API

Tags:

github

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

like image 393
Florent Avatar asked Dec 06 '25 01:12

Florent


1 Answers

The solution proposed by user orhtej2 in comment works perfectly : https://api.github.com/repos/chartjs/chartjs-plugin-datalabels/issues?state=closed

like image 194
Florent Avatar answered Dec 07 '25 19:12

Florent



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!