Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting issues before a time from github

The github issues api provides a way to get all the issues that were updated at or after a particular time, but is there a way I can get all the issues before a particular time?


1 Answers

If the issues API isn't a good fit, you can falbback on the Issues Search API.

That would at least allows to search from oldest to most recent and filter out the ones that are past the time specified initially.

Example

Let’s say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.

https://api.github.com/search/issues?q=windows+label:bug+language:python+state:open&sort=created&order=asc

Filter the result of that query and what is left is all the issues before a certain date.

like image 61
VonC Avatar answered May 05 '26 00:05

VonC



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!