Skip to content

docs(merge-queue): document stack support#11235

Merged
mergify[bot] merged 1 commit intomainfrom
devs/jd/worktree-docs-queue-stack/document-stack-support--1fc66332
Apr 23, 2026
Merged

docs(merge-queue): document stack support#11235
mergify[bot] merged 1 commit intomainfrom
devs/jd/worktree-docs-queue-stack/document-stack-support--1fc66332

Conversation

@jd
Copy link
Copy Markdown
Member

@jd jd commented Apr 22, 2026

Add a dedicated /merge-queue/stacks page describing how the Merge
Queue handles stacks created by mergify stack push. The integration
was previously undocumented despite covering several engine features:

  • Stack detection (head/base chain plus Depends-On: markers)
  • Auto-propagation of @mergifyio queue from the top PR to every
    predecessor
  • Stack-aware base resolution (every stacked PR is queued against the
    stack root, not its parent branch)
  • Stack-aware batching guarantees: same scope group, bottom-up order
  • Cascade dequeue (StackPredecessorDequeued) when a predecessor fails
  • Limits: max stack depth of 20, drafts block propagation

Also adds a "Stacked PRs" sidebar entry under Merge Queue, and
cross-links the new page from the places users already look for stack
and merge-queue information:

  • Merge Queue index: rows for "Stacked PRs" in both the
    problem-to-feature and key-features tables
  • /stacks/team: replace the generic blurb with single-comment stack
    queueing
  • /stacks/reviewing: rewrite the merge tip with the actual
    @Mergifyio queue workflow
  • /stacks/concepts: explain that the Depends-On marker is also the
    signal the queue uses for stack detection

Copilot AI review requested due to automatic review settings April 22, 2026 18:18
@jd
Copy link
Copy Markdown
Member Author

jd commented Apr 22, 2026

This pull request is part of a Mergify stack:

# Pull Request Link
1 docs(merge-queue): document stack support #11235 👈

@mergify mergify Bot had a problem deploying to Mergify Merge Protections April 22, 2026 18:18 Failure
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 22, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 👀 Review Requirements

Wonderful, this rule succeeded.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?:

🟢 🔎 Reviews

Wonderful, this rule succeeded.
  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

@mergify mergify Bot requested a review from a team April 22, 2026 18:20
Add a dedicated `/merge-queue/stacks` page describing how the Merge
Queue handles stacks created by `mergify stack push`. The integration
was previously undocumented despite covering several engine features:

- Stack detection (head/base chain plus `Depends-On:` markers)
- Auto-propagation of `@mergifyio queue` from the top PR to every
  predecessor
- Stack-aware base resolution (every stacked PR is queued against the
  stack root, not its parent branch)
- Stack-aware batching guarantees: same scope group, bottom-up order
- Cascade dequeue (`StackPredecessorDequeued`) when a predecessor fails
- Limits: max stack depth of 20, drafts block propagation

Also adds a "Stacked PRs" sidebar entry under Merge Queue, and
cross-links the new page from the places users already look for stack
and merge-queue information:

- Merge Queue index: rows for "Stacked PRs" in both the
  problem-to-feature and key-features tables
- /stacks/team: replace the generic blurb with single-comment stack
  queueing
- /stacks/reviewing: rewrite the merge tip with the actual
  @Mergifyio queue workflow
- /stacks/concepts: explain that the Depends-On marker is also the
  signal the queue uses for stack detection

Change-Id: I1fc66332f5f474a5b6a0cbd89362c9c8c20dbec0
@jd jd force-pushed the devs/jd/worktree-docs-queue-stack/document-stack-support--1fc66332 branch from d01d1ff to 67ff744 Compare April 22, 2026 18:21
@jd
Copy link
Copy Markdown
Member Author

jd commented Apr 22, 2026

Revision history

# Type Changes Date
1 initial d01d1ff 2026-04-22 18:21 UTC
2 content d01d1ff → 67ff744 2026-04-22 18:21 UTC

@mergify mergify Bot deployed to Mergify Merge Protections April 22, 2026 18:21 Active
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing documentation for how Merge Queue behaves with stacked PRs created by mergify stack push, and exposes it in the Merge Queue sidebar navigation.

Changes:

  • Add a new “Stacked Pull Requests” documentation page under Merge Queue (/merge-queue/stacks).
  • Add a “Stacked PRs” entry in the Merge Queue sidebar so the page is discoverable.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

File Description
src/content/navItems.tsx Adds sidebar navigation entry for the new Merge Queue stacks page.
src/content/docs/merge-queue/stacks.mdx New doc page describing stack detection, propagation, batching behavior, cascade dequeue, and limits.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jd jd marked this pull request as ready for review April 22, 2026 18:22
@mergify mergify Bot requested a review from a team April 23, 2026 07:21
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 23, 2026

Merge Queue Status

This pull request spent 2 minutes 32 seconds in the queue, including 2 minutes 11 seconds running CI.

Required conditions to merge

mergify Bot added a commit that referenced this pull request Apr 23, 2026
@mergify mergify Bot added the queued label Apr 23, 2026
mergify Bot added a commit that referenced this pull request Apr 23, 2026
@mergify mergify Bot merged commit cfbb2a3 into main Apr 23, 2026
9 of 14 checks passed
@mergify mergify Bot deleted the devs/jd/worktree-docs-queue-stack/document-stack-support--1fc66332 branch April 23, 2026 09:14
@mergify mergify Bot removed the queued label Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants