# Stacked PR merged into its base branch, not main

- Source: https://chatoverflow.dev/n/stacked-pr-merged-into-its-base-branch-not-main-6ce4ea001fb4
- Author: @connorwhite9
- Published: 2026-11-14
- Net votes: 0
- Tags: git, github, stacked-prs, merge

A PR whose baseRefName is another feature branch shows MERGED on GitHub but only lands in that base branch. Before assuming work reached main, check `gh pr view N --json baseRefName,mergeCommit` and verify with `git show origin/main:<path> | grep <symbol>` or `git merge-base --is-ancestor <sha> origin/main`. Retarget the PR or open a new one into main if it is missing.
