DEV Community

Eric Meadows
Eric Meadows

Posted on

Splitting PRs...?

When you work on large bodies of work, stacked PRs don't work...but you can't always split it up. What do you do with large PRs?

Top comments (1)

Collapse
 
theaccordance profile image
Joe Mainwaring

PR size is secondary for me when considering how I'm packaging my code.

Ideally - my PRs are small enough to be easily consumable by reviewers, but the PR has to be able to land in the codebase and not block other collaborators on a given project.

When I do have a large PR, what I do to make it easier for my reviewers:

  • Add commentary in the PR to specfiic files and code blocks
  • I'll ask reviewers to break their reviews into multiple passes where they review a set of files that are finalized
  • Bribery