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

Aperta
#4,049 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Sakshamebdev873 ci sta già lavorando.

Dal 3/12/2026.

  • #4050 di @Sakshamebdev873 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
TypeScript
Stelle
246
Fork
436
Merge medio
9h 33m
PR unite (30g)
213

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Priyanshu-byte-coder/devtrack

Tutte le issue di Priyanshu-byte-coder/devtrack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.