跳到主要内容
版本:v0.14

PR Size

What is this metric?

The average code changes (in Lines of Code) of PRs in the selected time range.

Why is it important?

Small PRs can reduce risks of introducing new bugs and increase code review quality, as problems may often be hidden in big chuncks of code and difficult to identify.

Which dashboard(s) does it exist in?

  • Engineering Throughput and Cycle Time
  • Engineering Throughput and Cycle Time - Team View

How is it calculated?

This metric is calculated by counting the total number of code changes (in LOC) divided by the total number of PRs in the selected time range.

Data Sources Required

This metric relies on PR/MRs collected from GitHub or GitLab.

Transformation Rules Required

N/A

SQL Queries

How to improve?

  1. Divide coding tasks into workable and manageable pieces;
  2. Encourage developers to submit small PRs and only keep related changes in the same PR.