Fifty pull requests in a week

Small diffs, review queues, integration checks, and recovery: what it takes to keep a fifty-PR week moving.


Fifty pull requests in a week. Writing the code is only part of it. Reviews pile up, branches drift, and finished changes sit waiting for someone to look at them. At that pace, the delivery pipeline becomes the constraint.

Time spent waiting deserves its own clock. A fast implementation lane cannot compensate for a review queue whose arrival rate exceeds its service rate.

Three pull requests prepare independently. Integration uses a merge queue. A new commit invalidates evidence tied to an older head.

Implementation and review can run in parallel while integration stays ordered. A green result is useful only for the commit and base state it actually checked.

Open full size Scroll horizontally to read the diagram on a small screen.

Small diffs are a velocity technology

Each pull request needs to be coherent enough to review and revert independently. A short authorization change can demand more attention than a large mechanical rename. The useful sizing unit is how many decisions a reviewer must hold at once, and which compatibility boundaries those decisions cross.

Small diffs compound. They merge faster, so they conflict less, so rebasing is cheap, so the next one ships sooner. They’re easier to revert, so shipping them is less scary, so you ship more readily. They isolate failures, so the bisect is short when something breaks. The system speeds up because each unit of work is small enough to flow through it without clogging.

Line count is a weak boundary for deciding whether work belongs together. A one-line authorization change can deserve its own PR; several tiny edits may belong together when they implement one behavior. Group by the outcome a reviewer can understand and the unit you can revert safely. Splitting a schema change from the only code that can read it requires an explicit compatibility sequence.

One task, one branch, one PR

Give each independent task its own branch and checkout from a freshly fetched master. One task, one branch, one PR. A finished fix can then proceed without carrying an unrelated experiment through review.

set -eu
repo=$(git rev-parse --show-toplevel)
parent=$(mktemp -d "${TMPDIR:-/tmp}/focused-change.XXXXXXXX")
branch="fix/specific-thing-$(basename "$parent")"
git -C "$repo" fetch origin master
git -C "$repo" worktree add -b "$branch" "$parent/checkout" origin/master
cd "$parent/checkout"

# Implement one outcome, inspect the diff, and run its required checks.
# Commit the reviewed files using the repository's identity policy.
git push -u origin "$branch"
gh pr create --base master --head "$branch" --fill

Separate checkouts keep local edits and indexes independent. Review changes stay with their task, while shared dependencies remain explicit in the PR graph. Work in progress still needs a limit: twelve open branches can represent twelve blocked outcomes.

Speed is safe only when the net is automatic

The declared automated checks have to pass for the exact revision entering integration. Branch protection and a merge queue make that rule enforceable. The required checks must cover the relevant contracts, and failures must retain enough evidence to diagnose them.

That trust has to be earned first. A flaky check teaches people to discount failures, so recurring flakes need an owner and a repair deadline. If quarantine is necessary, it should be narrow, visible, and temporary. The remaining checks still run. Green establishes that the declared checks passed for a particular commit; review still has to examine assumptions the suite does not cover.

Rollback and rework belong beside throughput on the dashboard. A workflow that increases merges by postponing repair has shifted cost into the next queue.

Keep the queue tied to the revision

The smallest useful PR has a clear contract: what changes, why, what evidence supports it, and how to undo it. Include what happened in the relevant failure case. A list of commands without outcomes leaves the reviewer guessing. A test run against a previous head is historical evidence after another commit arrives.

Independent work starts from master. Dependent work needs a visible chain: an additive schema change, compatible readers and writers, a backfill, and eventual cleanup can be separate outcomes with an explicit ordering. Ten apparently ready PRs that all rely on an unmerged interface are a queue in disguise.

The checks before merge also need to account for the target branch. Two PRs can pass independently and break when combined. Testing the proposed integration revision or using a repository’s required merge queue reduces that gap. The queue must keep the exact tested head associated with the result and rerun required checks when its inputs change.

Measure elapsed time from ready-for-review to review, and from approved to merged, alongside rework and rollback rates. A fifty-PR target is useful only when the delivered changes improve the product without creating a growing repair backlog.