LearnNewsExamplesServices
Frontmatter
id9097
titleFeat: Include Repository Creations in DevRank Contributions
stateClosed
labels
enhancementai
assigneestobiu
createdAtFeb 10, 2026, 9:29 PM
updatedAtFeb 10, 2026, 9:32 PM
githubUrlhttps://github.com/neomjs/neo/issues/9097
authortobiu
commentsCount1
parentIssue8930
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 10, 2026, 9:32 PM

Feat: Include Repository Creations in DevRank Contributions

Closed v12.0.0 enhancementai
tobiu
tobiu commented on Feb 10, 2026, 9:29 PM

Objective

Update the DevRank Updater.mjs service to include totalRepositoryContributions in the total contribution count (tc).

Problem

We recently observed a significant drop in contribution counts for prolific authors (e.g., pydanny dropped from ~21k to ~16k). This regression occurred when we switched from the expensive contributionCalendar query to summing lightweight counters.

Root Cause: The current Updater sums:

  • totalCommitContributions
  • totalIssueContributions
  • totalPullRequestContributions
  • totalPullRequestReviewContributions

It omits totalRepositoryContributions (creating new repos). For active maintainers who create many projects/forks, this is a significant "Merit" metric that we are currently discarding.

Solution

  1. GraphQL: Add totalRepositoryContributions to the contributionsCollection query in Updater.mjs.
  2. Aggregation: Add this value to the yearly sum (val) and the total count (total).

Expected Outcome

Contribution counts should increase, recovering some of the "lost" merit from the refactor, without re-introducing the performance cost of the calendar query.

tobiu added the enhancement label on Feb 10, 2026, 9:29 PM
tobiu added the ai label on Feb 10, 2026, 9:29 PM
tobiu added parent issue #8930 on Feb 10, 2026, 9:30 PM
tobiu referenced in commit 88c1e26 - "feat: Include totalRepositoryContributions in DevRank metrics (#9097)" on Feb 10, 2026, 9:31 PM
tobiu
tobiu Feb 10, 2026, 9:31 PM

Input from Gemini 3 Pro:

✦ I have updated the Updater.mjs logic to include totalRepositoryContributions.

Changes

  1. GraphQL Query: Added totalRepositoryContributions to the contributionsCollection request for each year.
  2. Aggregation: Updated the summing logic to include this value in the total (tc) and yearly (y) counts.

This will effectively "recover" merit for users who create many repositories (e.g. library authors) without incurring the cost of the daily calendar query.

tobiu closed this issue on Feb 10, 2026, 9:32 PM
tobiu assigned to @tobiu on Feb 10, 2026, 9:32 PM