Reviews stay valid after merging main when a stacked parent was already on main (GST-3315) (#4580)

/ship keeps a PR's review when the PR merges main and its stacked parent
had already landed before the review. It used to refuse over the
parent's files.

Why: yc-software/qm#3457 was asked to re-review files it never changed.
Nothing for readers to do.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-21 00:04:26 +00:00
1 parent faae7f725a
commit ef4a7f5cbf
5 files changed
+127 -16

No files matched your search

+5 -1
View File
@@ -2335,7 +2335,11 @@ difference refuses with `RECEIPT_CARRY_PRODUCT_CHANGED`. When merging the commit
into the current base conflicts because the base edited the landed lines
afterwards, the base commits since the fork that touched every path of its
change are tried newest first (at most 200), so the squash itself still counts
(GST-1399).
(GST-1399). A commit the reviewed range's own base already held is no parent: it
landed before the review, so the reviewed diff never held its hunks, and
measuring from it would compare the wrong range and name the parent's files
(yc-software/qm#3457, GST-3315). Step 11.5's base-merge check measures a
reviewed range from a landed parent by the same rule.
**finish after a stack parent lands (GST-1399).** A child reviewed against its
parent branch passes the parent's head to `gstack-ship-release finish