Guides

Get a pull request ready for human review

Have Claude Code, Codex, or Cursor map a branch against its issue's acceptance criteria, fix the gaps, and leave a review map before anyone reviews it.

Updated

SHORT ANSWER

How do I get a branch ready before someone reviews the pull request?

Name the branch, its base, and the issue with acceptance criteria. The shift separates in-scope changes from unrelated work, maps each criterion to its evidence, fixes supported gaps one cluster at a time, and leaves a review map of what a human still decides. It never approves, pushes, or merges.

01

Scope comes from the issue

Discovery records the branch, base, issue URL, acceptance criteria, repository rules, and any review comments you supply. A diff-scope receipt sets aside paths outside the issue, and an acceptance map ties every criterion to proof or to a parked question.

02

One gap cluster per cycle

Compatibility, security, tests, docs, packaging, and review-comment threads are fixed in turn, each followed by the focused gate and a commit on the named branch. Every finding gets a disposition: fixed, rejected, parked, unsupported, or out of scope.

  • Tests are never weakened to make a criterion pass.
  • Acceptance is never redefined to claim progress.
03

The review map you open first

Before clock-out the shift writes changed areas, acceptance evidence, remaining risks, rollback steps, the commits on the branch, and the exact decisions left for the reviewer. Opening the pull request, approving, merging, and closing the issue stay owner actions unless the punch list names them.

TRY IT

Start with a bounded prompt

This prompt names the outcome and preserves Nightshift’s review boundary. Paste it into the supported coding host from the project you want to change.

Run the Nightshift pull-request readiness shift on this branch against issue #123: map the acceptance criteria, fix the gaps, and leave a review map. Do not push or open the pull request.
BOUNDARIES

What this workflow does not claim

  • Acceptance comes from the issue; a branch without one routes to other shifts.
  • Approving, merging, and closing stay with the reviewer and owner.
SOURCES

Evidence and sources

These links support the released behavior, public outcomes, or problem language described on this page.

pull-request-readiness contractDiff scope, acceptance map, gap clusters, and the review map.Open evidence ↗Evidence linesEvidence kinds, owner folders, and what off, report, block, review, and unavailable do.Open evidence ↗
RELATED QUESTIONS

Continue from the question you have

turn selected GitHub issues into a shiftRead the answer →check release readinessRead the answer →read what the shift leftRead the answer →