Pr Throughput

PR Throughput

Count of Pull requests created & merged for each week in the selected time period, along with the total lines of code changed.


Computation of the metric

This metric is a combination of the following metrics-

  1. PRs Created (opens in a new tab)
  2. PRs Merged (opens in a new tab)
  3. Lines of Code (opens in a new tab)

Dashboards where this metric is used

  1. Dev Throughput

Use cases of this metric

  1. There will be weeks when PR creation outpaces merging, but if this becomes the norm, it will lead to inefficiency. It's important to also have weeks where merging exceeds PR creation.
  2. The difference between create & merge is an indication of WIP or shelved or wasted PRs
  3. Comparing pull request creation to merge ratio provides insights into development momentum and collaboration efficiency.
  4. A higher ratio indicates active initiation of tasks but pending integration, highlighting the need for streamlined processes.
  5. Monitoring this metric over time helps gauge productivity trends and ensures effective resource utilization.