Glossary
Pull request size
Pull request size is the amount of change a single pull request contains, usually counted as lines added and removed plus files touched, and it is the variable that most reliably predicts how long that change takes to review and merge.
Definition
Pull request size: Pull request size is the amount of change a single pull request contains, usually counted as lines added and removed plus files touched, and it is the variable that most reliably predicts how long that change takes to review and merge.
In practice
How Pull request size is used
Size is the closest thing engineering analytics has to a lever that a single author can pull without anyone else changing their behaviour. It affects pickup time, because a reviewer picks up a small change sooner; review time, because a small diff is read faster; rework time, because objections to small changes are cheaper to act on; and change failure rate, because less change per release means less surface for a regression.
Line counts are a crude measure and should be treated as such. A 600-line generated migration, a lock file update and a 600-line rewrite of a scheduler are not comparable, and any size metric will rank them the same. Files touched adds useful signal — a change spread across twenty files is harder to hold in your head than one concentrated in two — but the honest use of the metric is as a distribution to watch rather than a threshold to enforce.
A hard cap on lines tends to backfire. Authors split changes along mechanical boundaries to satisfy the rule, producing a chain of pull requests that cannot be reviewed independently and that collectively take longer than the original. The better target is reviewability: each pull request should be understandable and, ideally, mergeable on its own.
The techniques that actually shrink pull requests are structural. Separate refactoring from behaviour change. Land interfaces and schemas before the code that uses them. Put new code behind a feature flag so incomplete work can merge without shipping. Stack dependent changes so each one is small even when the feature is not.
Marvex reports pull request size distributions per team and per repository and shows them alongside cycle time, so the relationship between the size a team habitually ships and the time those changes take is visible rather than assumed.
Quick answer
What is Pull request size?
Related terms
Marvex