Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"baseUrl": ".",
"ignoreDeprecations": "6.0",
"paths": {
"@/*": ["src/*"]
}
Expand Down
6 changes: 5 additions & 1 deletion src/app/api/stats/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ export async function GET() {
// Fetching contributors for ALL repos consumes too much rate limit (N requests).
// We will proactively fetch contributors for the top 6 most starred/popular repos to get a good estimate.
// Sorting repos by stargazers_count
const topRepos = repos.sort((a, b) => b.stargazers_count - a.stargazers_count).slice(0, 6);

const topRepos = [...repos]
.sort((a, b) => b.stargazers_count - a.stargazers_count)
.slice(0, 6);


const contributorIds = new Set();

Expand Down