Search PRs with a specific repository topic

Hacktoberfest and GitHub announced that only repos that have the hacktoberfest topic are eligible for participation. There is an online tool that check the status for a GitHub user by using the v3 issues search API and constructing a query, e.g.


Unfortunately, doesn’t seem like there’s a way to filter by repo topic (only by label for the PR itself but that’s not too helpful).

Any thoughts?
Thank you :slight_smile:

FWIW, PRs labelled with hacktoberfest-accepted are also eligible even without the hacktoberfest repository tag (retroactively labeling already merged PRs doesn’t work though).

The repository search API does support topics:

But a request like yours to find pull requests:

… is an issue search, with doesn’t support topic:hacktoberfest - the context is issues, not repositories, and the results don’t include any repository information other than a URL to the repo.

You could make secondary requests however to determine the topics of the respective repositories:

In Windows cmd you can get the unique repositories like so:

curl "" | jq "[.items[].repository_url] | unique_by(.) | .[]"

And test for the Hacktoberfest topic like:

curl -H "Accept: application/vnd.github.mercy-preview+json" "" | jq ".names | contains([\"hacktoberfest\"])"