Improve GitHub repository search

Sort by relevance (stars) instead of last updated
This commit is contained in:
Paul Adams 2021-02-19 18:23:09 +00:00 committed by Eric Amodio
parent 64ebc978e7
commit 6c0c77926f

View file

@ -76,7 +76,7 @@ export class GithubRemoteSourceProvider implements RemoteSourceProvider {
return [];
}
const raw = await octokit.search.repos({ q: query, sort: 'updated' });
const raw = await octokit.search.repos({ q: query, sort: 'stars' });
return raw.data.items.map(asRemoteSource);
}