githubpull-request

When searching Issues or Pull Requests in Github, can you specify a date relative to "today"?


Is there a way to search Pull Requests (and likewise Issues) on Github where you specify a date range relative to today?

My team meets weekly with another team, and we like to present them a list of Github pull requests we've merged within the past week.

We can do a search for any items merged since a particular date with the filter:

is:pr is:closed merged:>=2016-03-31

But this needs to be updated every week, which is less than ideal. (As you can see, it's already out of date :)

However I see no mention of relative dates in their support article on searching issues: https://help.github.com/articles/searching-issues/

Nor is there mention of relative dates in the search syntax article: https://help.github.com/articles/search-syntax/


Solution

  • I am not aware of a way to do this and as you mention their search documentation does not cover it.

    However, the GitHub API does provide a created_at and an updated_at property for issues it returns, so depending on how useful it would be you might consider setting up a simple script to get all the issues related to specific repos and then filtering the response(s) you get back based on those properties.