Skip to content

fix: count reviewed PRs across all time#4893

Open
puneetdixit200 wants to merge 1 commit into
anuraghazra:masterfrom
puneetdixit200:fix-all-time-reviewed-prs
Open

fix: count reviewed PRs across all time#4893
puneetdixit200 wants to merge 1 commit into
anuraghazra:masterfrom
puneetdixit200:fix-all-time-reviewed-prs

Conversation

@puneetdixit200

Copy link
Copy Markdown

What changed

Fixes #4874.

The stats fetcher now uses a GitHub search count for type:pr reviewed-by:<username> so the Total PRs Reviewed value is not limited to the default one-year contributionsCollection window. The existing contribution collection field remains in the query fixture only for compatibility context, but the displayed stats use the all-time search count.

Verification

  • node --experimental-vm-modules node_modules/jest/bin/jest.js tests/fetchStats.test.js -t "all-time reviewed pull request count" --runInBand
  • node --experimental-vm-modules node_modules/jest/bin/jest.js tests/fetchStats.test.js tests/api.test.js --runInBand
  • npx eslint --max-warnings 0 src/fetchers/stats.js tests/fetchStats.test.js tests/api.test.js
  • npx prettier --check src/fetchers/stats.js tests/fetchStats.test.js tests/api.test.js
  • git diff --check
  • nvm exec 22 npm test -- --runInBand

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the stats-card Feature, Enhancement, Fixes related to stats the stats card. label Jun 4, 2026
@Andrej123456789

Copy link
Copy Markdown

Thank you for this pull request.

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

Labels

stats-card Feature, Enhancement, Fixes related to stats the stats card.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Total PRs Reviewed' is only counting reviews in the past year.

2 participants