All posts
Development Log 2 min read

When the fix your reviewer wants is in another PR

A review can only move forward once a prerequisite merges. Record the dependency so someone knows what will restart the waiting review.

Say you open a formatting PR and the diff also includes a branch sync. The reviewer asks you to split the sync into another PR. You do. At the next review, the only remaining action is for someone to merge that second PR. Sending the formatter back in gives it nothing useful to change.

Name the event that makes review useful again

Ask whether the finding needs a change in this diff or a merge elsewhere. If the other merge is the whole blocker, put the prerequisite PR in the body and say what to check after it lands. For a formatting change, that might mean checking that the refreshed diff only touches formatting. If the PR was stacked on the prerequisite branch, agree on the target it should return to.

How Autop waits for a prerequisite PR

On November 19, an Autop coding job split a branch sync out of a formatting PR. Waiting on the sync spent the formatting PR’s last automatic review round. After the sync merged, a person still had to put the PR back on the right base, clear the hold, and ask for a new review.

In Autop, the coder can declare one open PR in the same repository as the prerequisite. Here’s an example.

Waits-on: #123

The reviewer can tag a dependency-only finding with [WAITS-ON #123]. When every blocking finding has the same valid dependency tag, Autop parks automatic review without spending a round. It resumes after GitHub reports the prerequisite merged and retargets a stacked PR to its expected base first. If the prerequisite closes unmerged, the maintainer gets the decision back.

Topics

Get new posts by email