How can I search for reopened issues with the GitHub API?

Viewed 25

I need to see the trend of reopened issues in GitHub. How can I search for a list of reopened issues using the API?

I tried is:issue is:reopen, however it returns all issues in open state, even those that were never closed and reopened.

I pull the GitHub data from a Google sheet form with:

  var baseURL = "https://api.github.com/";
  var query = "search/issues?q=repo:<my_repo_name_here>+is:issue+label:kind/bug+is:reopened+created:"
  var api = baseURL + query + startDate + ".." + endDate;

where startDate and endDate are taken from a cell value.

0 Answers
Related