Skip to content

Can't merge a stacked PR with no clear reason (all PRs show mergeable) #323

Description

@mr04vv

Environment

  • develop branch are protected by a repository ruleset with:
    • require_last_push_approval: true
    • dismiss_stale_reviews_on_push: true
    • required status checks
    • No merge queue.

Reproduction

  1. Create a 3-level stack: develop <- A <- B <- C.
  2. Approve every PR after its latest push. All three show MERGEABLE / CLEAN / APPROVED, all checks green.
  3. On the top PR (C), the native GitHub "Merge stack (3)" box shows "Able to merge as a stack". Click it (merge method: Create
    a merge commit) and confirm.

Expected

All three PRs merge into develop, or the operation stops before anything merges.

Actual

  • UI shows "Merging stack… / 3 pull requests are being merged" briefly, then rolls back to "Able to merge as a stack". Nothing
    merges.
  • The PR event log records repeated auto-merge was automatically disabled — "Pull Request is not mergeable".

(In the image, the bottom PR has been merged, but the behavior remains the same even if it is not merged.)
Image
Image
Image

Notes

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