Repository navigation
💡 Stacked PR Awareness for Review and Dev-Lead Pipelines #792
Replies: 1 comment
Weekly UpdateWhat ChangedStacked pull requests went GA on Oct 6, 2026 (GitHub changelog). The original idea's main objection was "preview-only, the API may change", and that no longer holds. Details that matter for this pipeline:
Third-party merge queues followed earlier: Trunk (Jul 31) and Mergify (Aug 12) both merge GitHub stacks. Updated Assessment
RecommendationAdvance, and couple it to #1939. A cheap first slice that holds up under scrutiny:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Adapt the pr-review pipeline and dev-lead agent to understand GitHub's new Stacked PRs (announced April 2026, preview). When reviewing a stacked PR, include the parent PR's context in the review prompt so the reviewer understands the incremental change. When dev-lead creates related sub-issue PRs from an initiative, create them as a stack rather than independent PRs.
Market Signal
GitHub unveiled Stacked PRs on April 14, 2026, specifically citing the rise of AI-assisted coding tools as the motivation — AI agents generate higher PR volumes that need better review organization. The feature is paired with the
gh-stackCLI extension. This is likely to reach GA within 2026 and become a standard workflow pattern for AI-heavy teams. GitHub's blog post states: "The release of Stacked PRs is a response to the rise of AI-assisted coding tools, which have greatly increased the volume and scale of code submissions."User Signal
Technical Opportunity
The pr-review pipeline (
scripts/review-one-pr.sh,scripts/engine.sh) already receives PR metadata via the GitHub API. Detecting stack membership requires querying thegh-stackAPI for the PR's stack position and parent. The review prompt can be enriched with a "Stack Context" section summarizing parent PR changes. The dev-lead's PR creation flow (scripts/dev-lead-fix-issue.sh) can use thegh-stackCLI to create stacked PRs from ordered sub-issues.Assessment
Adversarial Review
Strongest objection: Stacked PRs are still in private preview — building on a preview feature risks wasted effort if the API changes or the feature is delayed/altered before GA.
Rebuttal: The proposal is intentionally low-investment at this stage: Phase 1 is detection-only (add stack metadata to review context if available, no-op if not). The
gh-stackAPI is stable enough for read operations. The review context enrichment degrades gracefully — if a PR is not part of a stack, nothing changes. Building awareness now positions the pipeline to leverage stacks immediately when GA lands.Suggested Next Step
Join the Stacked PRs waitlist, evaluate the
gh-stackCLI API surface, and prototype a stack-detection script that enriches PR review context with parent PR summaries.All reactions