Pull Request Trends

The PR Trends page shows you metrics for Pull Requests over time. The following charts are available:

  • Number of PRs opened
  • Number of PRs merged
  • Size of merged PRs
  • Lifetime of merged PRs
  • PR Review time breakdown

For a quick introduction to these charts, check out our blog post on Pull Request metrics.

You can group the results by any combination of Repo, Team, User or Time Period. See the Metrics Explorer section for how to set search and grouping parameters.

Here’s an example of “PR Merge Count” and “PR Review Time” for each team for the last three months:

Chart of number of Pull Requests merged by each team each month

Chart with breakdown of Pull Request review time, by month

Note that the final section of both charts is shaded. This is because the query was run before the end the second week of October, so the final bar only has partial data.

What Contributed to this Metric?

You can “drill down” into any of the nodes in a PR Trend chart by clicking on it. This opens a list of the contributing PRs:

See which PRs contributed to a specific metric

You can search, filter, and sort the contributing PRs by repo, author, team, time, etc. You can also export the results to CSV for further analysis.

Download CSV

You can download a CSV file of the complete data for any of the charts, or just for the PRs in a single time period.