Skip to content

[FEAT] Add GitHub pull request review metrics — reviews given vs received #253

@Priyanshu-byte-coder

Description

@Priyanshu-byte-coder

Summary

PRMetrics focuses on PRs authored by the user. But code review is equally important — how many PRs has the user reviewed? How many reviews have they given? This shows a fuller picture of contribution.

Expected Behaviour

New 'Reviews Given' section in PRMetrics:

  • Total reviews given (this period)
  • Approval rate (approvals / total reviews)
  • Average time to first review comment
  • Most reviewed repos

Implementation Notes

  • GitHub GraphQL: viewer.contributionsCollection.pullRequestReviewContributions
  • Add to existing /api/metrics/prs route or create /api/metrics/reviews
  • Display alongside existing PR stats (same card, tabbed or expanded section)

GSSoC Info

  • Difficulty: Intermediate — 35 pts
  • Area: Feature / Metrics

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgssoc26GSSoC 2026 contributionlevel:intermediateGSSoC: Intermediate difficulty (35 pts)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions