Skip to content

Commit af28c0a

Browse files
fix: only include top repon to analyze and all the top contributor for each top repo
1 parent b2e6fe0 commit af28c0a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/context/AppContext.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export function AppProvider({ children }) {
4040
const contribsPerRepo = {}
4141
for (const org of validOrgs) {
4242
const top = getTopRepositories(reposPerOrg[org.login] || [], 10);
43+
reposPerOrg[org.login] = top; // Update to only include top repos
4344
await Promise.allSettled(top.map(async repo => {
4445
contribsPerRepo[`${org.login}/${repo.name}`] = await fetchContributors(org.login, repo.name, pat)
4546
}))

src/pages/NetworkPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function NetworkPage() {
2828

2929
// Top repos and contributors for performance
3030
const topRepos = model.allRepos.slice(0, 30)
31-
const topContribs = model.contributors.slice(0, 40)
31+
const topContribs = model.contributors
3232

3333
const nodes = []
3434
if (showRepos) topRepos.forEach(r => nodes.push({ id: `repo:${r.name}`, type: 'repo', data: r, ts: new Date(r.pushed_at).getTime() }))

0 commit comments

Comments
 (0)