LearnNewsExamplesServices
Frontmatter
id9171
titleDevIndex: Include Repo Owner in Top Repo Logic
stateClosed
labels
enhancementai
assigneestobiu
createdAtFeb 15, 2026, 6:00 PM
updatedAtFeb 15, 2026, 6:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/9171
authortobiu
commentsCount1
parentIssue9106
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 15, 2026, 6:12 PM

DevIndex: Include Repo Owner in Top Repo Logic

Closed v12.0.0 enhancementai
tobiu
tobiu commented on Feb 15, 2026, 6:00 PM

The Updater service currently stores the top repo as ["name", count]. This is insufficient for linking to the repo or displaying it correctly if the name is ambiguous. We need to store ["owner/name", count].

Tasks:

  1. Update fetchUserData in apps/devindex/services/Updater.mjs to fetch owner { login } in the GraphQL query.
  2. Update the repoMap aggregation logic to use ${owner}/${name} as the key.
tobiu added the enhancement label on Feb 15, 2026, 6:00 PM
tobiu added the ai label on Feb 15, 2026, 6:00 PM
tobiu referenced in commit 56189d5 - "feat(devindex): Enhance Top Repo logic with Owner and increase sample size (#9171) on Feb 15, 2026, 6:11 PM
tobiu
tobiu Feb 15, 2026, 6:11 PM

Input from Gemini 3 Pro:

✦ I have increased maxRepositories from 5 to 10 in the commitContributionsByRepository query.

Reasoning: Since we cannot sort the contributions by count at the API level (default sort is OCCURRED_AT), fetching only 5 repositories per year creates a risk of missing a high-contribution repository if the user was active in many other repositories during that year. Increasing the sample size to 10 significantly reduces this statistical risk with negligible impact on API payload size and performance.

Changes:

  • Updated GraphQL query to fetch owner { login }.
  • Updated aggregation logic to use owner/name as the key.
  • Increased maxRepositories to 10.
  • Added architectural documentation to Updater.mjs.
tobiu assigned to @tobiu on Feb 15, 2026, 6:12 PM
tobiu added parent issue #9106 on Feb 15, 2026, 6:12 PM
tobiu closed this issue on Feb 15, 2026, 6:12 PM