Reputation: 63597
Is it possible to search GitHub for a particular filename AND restrict results to repos with some number of stars? I want to find all repositories that have a wepack.config.json
file with 100+ stars.
You can search for a particular file name like so:
filename:webpack.config.json
And you can search for repos with some number of stars like so:
stars:>100
But there doesn't seem to be a way to combine the syntax to limit file searches.
Upvotes: 5
Views: 1088
Reputation: 1323963
But there doesn't seem to be a way to combine the syntax to limit file searches.
That is because stars:
is a repository selector, as opposed to filename:
which is a Code selector.
You would need a GitHub BigQuery in order to effectively combine the two search criteria.
However, as the OP Don P adds in the comments:
It looks like there is no dataset for repos.
Another approach would be using a GitHub GraphQL query, looking for:
TreeEntry
,StarOrder
for the resultUpvotes: 3