This metric gives the average size of the PR (or LoC changes). This helps understand the impact of the PR, the time taken to review, the risk involved, time to pickup, and more. This metric also shows on graph the Industry best practice level of the LoC per PR (~300LoC).
The changes in the lines of code (both additions, deletions) are included in this metric and indicates the size of the pull request.
Smaller PR sizes are always preferred because:
- Carry less risk as changes are minimal
- Easier to review because of number of changes
- Faster pickup times because of less risk, and easier to review
Subscribe to Hatica's blog
Get bi-weekly emails with the latest from Hatica's blog
Share this article: