Skip to content

docs(vcs): merging a stacked pull request without closing it #843

Description

@blafourcade

Problem

While merging a stack, the base branch of #819 was deleted through the API after #818 merged. GitHub closed #819 instead of retargeting it, because it only retargets when the branch is deleted by the merge itself. The branch had to be recreated at its old SHA, the PR reopened and retargeted, and then rebased, because #818 had been squashed.

Scope

aidd_docs/memory/vcs.md: how a stacked PR is merged. Retarget the dependent PR to next first (gh pr edit --base next), then merge its base. Never delete a base branch that another open PR targets. After a squash merge of the base, rebase the dependent PR with git rebase --onto next <old-base-head>.

Acceptance criteria

  • vcs.md carries the rule in one place, and no other page restates it.

Activity

  1. added theissue type on Sep 11, 2026
  2. moved this from Ideation to Todo in AIDD Roadmapon Sep 11, 2026
  3. moved this from Todo to In review in AIDD Roadmapon Sep 11, 2026
  4. added a commit that references this issue on Sep 11, 2026
    b630704
  5. moved this from In review to Done in AIDD Roadmapon Sep 11, 2026
  6. closed this as completedby moving to Done in AIDD Roadmapon Sep 11, 2026
  7. moved this from Done to In review in AIDD Roadmapon Sep 24, 2026
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

    Fields

    Priority

    Low

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions