Skip to content

fix: show repository subscriber counts - #3355

Open
nyxsky404 wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
nyxsky404:fix/repository-watcher-count
Open

fix: show repository subscriber counts#3355
nyxsky404 wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
nyxsky404:fix/repository-watcher-count

Conversation

@nyxsky404

Copy link
Copy Markdown
Contributor

Summary

Map the repository comparison Watchers metric to GitHub's subscribers_count field instead of the legacy watchers_count field that mirrors stars.

Closes #3350

Type of Change

  • Bug fix

What Changed

  • Updated the repository comparison API response mapping.

How to Test

  1. Compare repositories with different star and subscriber totals.
  2. Verify the Watchers value matches GitHub subscriber counts.

Expected result: Stars and Watchers can display different values.

Checklist

  • Linked the related issue above
  • Self-reviewed my own diff
  • No unnecessary debug code
  • Focused lint passes locally
  • TypeScript check passes locally

Additional Context

Copilot AI review requested due to automatic review settings August 3, 2026 11:50
@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix labels Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@github-actions github-actions Bot added type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts) labels Aug 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The change is small, directly addresses the reported mapping bug, and is consistent with GitHub’s repo field semantics for subscribers/watchers.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR fixes Repository Comparison’s “Watchers” metric by mapping it to GitHub’s subscribers_count field (the actual watcher/subscriber total) instead of the legacy watchers_count field that mirrors stars.

Changes:

  • Update repository comparison data mapping to use subscribers_count for the Watchers value.
File summaries
File Description
src/app/dashboard/repo-comparison/page.tsx Maps the displayed Watchers metric to GitHub subscribers_count so Stars and Watchers can differ as expected.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Repository comparison labels star counts as watchers

2 participants