The merge queue
There is no git merge and no merge button. You enqueue a pull request and
the server lands it.
garden pr merge 42What happens
Section titled “What happens”- The server validates mergeability. If the PR isn’t ready, the blockers are reported and nothing is queued.
- The queue rebases it onto the current head of trunk.
- It re-runs CI against that rebase — not the stale base the author tested.
- Green, it lands. Not green, it’s kicked back out.
Step 3 is why the queue exists: two PRs that are each green in isolation can break trunk together, and testing after the rebase catches that before it lands.
The three merge gates
Section titled “The three merge gates”| Gate | Cleared by |
|---|---|
| Owner approval | An eligible non-author owner approved — see Code ownership |
| Green CI | Every required check passes on the head revision — see CI |
| All threads resolved | No open review threads, including ci-bot’s — see Code review |
garden pr view 42 shows what’s outstanding.
Watching it
Section titled “Watching it”garden queue # what's queued right nowgarden pr checks 42 # this PR's checksgarden pr wait 42 --for merged --timeout 30mgarden pr wait exits 0 when the condition is met, 124 on timeout, and 1
if the PR can’t be reached — usable directly in a script or agent loop. It also
waits --for review, attention, ci, mergeable, or closed.
Getting out, and jumping the line
Section titled “Getting out, and jumping the line”garden pr merge 42 --cancel # remove from the queuegarden pr merge 42 -p 10 # higher priority merges firstStacks land bottom-up
Section titled “Stacks land bottom-up”Each commit in a stack is its own PR, and a child’s diff is defined against its parent, so the queue lands them in order.
Skipping review
Section titled “Skipping review”garden pr merge 42 --skip-reviewA fast-forward “direct push”: it still opens the PR for the record, then lands
it without review or CI. Requires the repository’s merge-without-review policy
and that your change sits on the current head — otherwise garden pull and try
again.
Related
Section titled “Related”garden pr merge,garden queue- Code ownership — who has to approve