PR Health & Cycle Time
Track pull request patterns across your organization — size distributions, review velocity, and bottlenecks.
Size Distribution
PRs are classified into size buckets by both file count and lines of code:
By files changed:
| Bucket | Files |
|---|---|
| XS | 1-2 |
| S | 3-5 |
| M | 6-15 |
| L | 16-30 |
| XL | 30+ |
By lines of code:
| Bucket | LOC |
|---|---|
| XS | < 50 |
| S | 50-199 |
| M | 200-499 |
| L | 500-999 |
| XL | 1000+ |
Cycle Time Metrics
All time metrics use only merged PRs (need a complete lifecycle):
- Time to first review: PR opened → first review received
- Time to merge: PR opened → merged
- Percentiles: p50, p75, p90 using linear interpolation
Weekly Trends
Track how PR patterns evolve week over week:
- PR count per week
- Average files changed
- Average review time
- Average merge time
Helps spot trends like growing PR sizes or slowing review cycles before they become problems.
Size-to-Review Correlation
ShipLens computes the Pearson correlation between PR size and time to first review. A strong positive correlation means larger PRs sit longer waiting for review — a sign your team may need to adopt smaller PR practices.
Per-Contributor Breakdown
PR stats grouped by author:
- Average files changed
- Average lines of code
- Percentage of small PRs (XS + S)
- Percentage of large PRs (L + XL)
Helps identify contributors who consistently ship small, reviewable PRs vs. those who create review bottlenecks.
Open PRs
Real-time view of currently open PRs across all projects:
- Age (time since opened)
- Size bucket
- Time waiting for review
- Sorted by staleness
