Keep the changes link on dependent PR comments until rebase/merge (#8163)

Previously, the dependent PR workflow updated the comment as soon as all
dependency PRs were merged in a way that removed the changes link that
helps with identifying the start of review. If the PR hadn't yet been
rebased or merged trunk, this made it hard to review again. =/

This PR fixes it by detecting when we haven't rebased or merged far
enough to just review the PR as a whole, and preserves the review link.
And once `trunk` _has_ been merged far enough (or PR has been rebased),
updates the comment again to reflect that.

This requires persisting the `review_base` in the hidden JSON of the
comment, and somewhat more interesting API queries to manage this.

Docs are also updated.

Assisted-by: Antigravity with Gemini
This commit is contained in:
Chandler Carruth authored and GitHub committed 2026-11-20 17:47:40 +00:00
1 parent 1359231ddc
commit af53554f1e
3 files changed
+297 -20

No files matched your search

+2 -1
View File
@@ -117,7 +117,8 @@ commits:
request's commits, and leaves its status `pending` so it doesn't merge
before its dependencies.
- Once those pull requests merge, the check removes the `dependent` label,
updates the comment, and marks the status `success`.
updates the comment (preserving the review link until the pull request is
rebased or merges `trunk`), and marks the status `success`.
If the check becomes stale, editing the pull request description runs it again.
Contributors with write access can also re-run the workflow job from the check's