Florent
Florent

Reputation: 1928

Unable to see the closed issues with the Github API

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

Answers (1)

Florent
Florent

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

Related Questions