Skip to content

Check native-stack ancestry before enqueueing a stack #7873

Open

Description

@ThomasK33

Under merge-only rules (no force-push), nothing restacks the upper branches of a native stack. In the Cursor plugin stack, #7838's final fix never reached the four branches above it, so the docs PR (#7847) shipped a stale line (tracked in #7858).

Proposed mechanism: a pre-enqueue check that fails when git merge-base --is-ancestor <lower-head> <upper-head> fails for any adjacent pair of stack PRs. It can live in the queued-stack watcher or a small script.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions