Skip to content

[BUG] Repository comparison labels star counts as watchers #3350

Description

@nyxsky404

Bug Description

Repository Comparison displays a metric labelled “Watchers”, but it maps GitHub’s watchers_count field. In the repository API, that legacy field mirrors stargazers_count; the actual subscriber total is subscribers_count. The page therefore shows the stars total twice and misstates the watcher metric.

Steps to Reproduce

  1. Open Repository Comparison.
  2. Add two repositories whose subscriber totals differ from their star totals.
  3. Compare the Stars and Watchers values.
  4. Observe that Watchers duplicates Stars.

Affected Area

Dashboard

Screenshots

Not applicable; the mapping is in src/app/dashboard/repo-comparison/page.tsx.

Browser & OS

Any modern browser

Environment

Both

Additional Context

Use subscribers_count and label it Subscribers, or rename the existing duplicated value so it accurately represents what is returned by the API.

Metadata

Metadata

Assignees

Labels

gssoc:assignedGSSoC: Issue assigned to a contributor

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions