Skip to content

Reduce the size of a pull request

Pull requests with changes that affect more than 1000 lines of code can be overwhelming for a reviewer and slow down the review process. Reduce the complexity of code review by breaking a larger pull request into multiple, smaller pull requests.

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.

Last updated: February 08, 2024

Relevant to

  • WordPress