[BUG] Personality report and AI Mentor only see the top 6 repos

Open
#4,049 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Sakshamebdev873 is already working on this.

Since Dec 3, 2026.

  • #4050 by @Sakshamebdev873 — open

Assessment

This issue has not been assessed yet.

Description

status:assigned

/api/metrics/repos returns only the top 6 repos (for the dashboard widget). The personality report and AI Mentor treat that list as all of the user's repos.

Effects

  • Personality report: repoCount is repos.length, so it is never more than 6. "Open Source Hero" (needs 8+ repos) can't be reached by repo count, and the AI is told "active across 6 repos" even for someone active in 20.
  • AI Mentor: the "X% of your commits are in one repo" figure only counts commits in those 6 repos. Example: 50 commits in one repo + 2 in each of 20 others is really 56%, but the mentor says 83%.

Fix
Also return the total repo count from /api/metrics/repos (no extra API calls; the route already counts every repo before cutting to 6) and use it, plus the total commit count it already returns (sampledCommits), in these two features. Add tests.

Dominant language
TypeScript
Stars
246
Forks
436
Avg merge
9h 33m
Merged PRs (30d)
213

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Priyanshu-byte-coder/devtrack

All issues in Priyanshu-byte-coder/devtrack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.