Skip to content

Code review

Reduce the size of a pull request

Pull requests with changes that affect more than 1000 lines of code require a scheduled review. It is possible to bypass the requirement for a scheduled review by breaking a larger pull request into multiple, smaller pull requests. If for any reason a review is still needed for the group of smaller pull requests, the VIP review process will likely be faster than a review of the original pull request of much larger size.

A suggested workflow for creating smaller pull requests:

  1. Check out a new branch off of the main production branch.
  2. Check out one of the changes from the branch used in the large pull request.
  3. Push this change to the new branch.
  4. Commit and push up the new branch.
  5. Create a new pull request from this branch targeting the main production branch.
  6. Continue to do this until all of the changes found in the original large pull request are now included in the smaller pull requests.

A more detailed explanation of breaking apart a large pull request into more manageable chunks is available for reference.

Last updated: January 18, 2022