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:
- Check out a new branch off of the main production branch.
- Check out one of the changes from the branch used in the large pull request.
- Push this change to the new branch.
- Commit and push up the new branch.
- Create a new pull request from this branch targeting the main production branch.
- 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