Skip to content

rules: dependent PRs are a gh stack, never hand-chained bases - #1436

Merged
ehartford merged 1 commit into
mainfrom
docs-gh-stack
Sep 23, 2026
Merged

ehartford merged 1 commit into
mainfrom
docs-gh-stack

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Adds a Bootstrap Rules subsection to CLAUDE.md and AGENTS.md (byte-identical): dependent PRs are created with gh stack link --base main …, stay draft until the batch battery is green, merge with gh stack merge <top> --squash (all-or-nothing, in order), and are rebased with gh stack rebase when main moves. Records why: #1357 stranded, #1360's squash carried five PRs. Docs-only (top-level *.md are not battery inputs, D49/D50).

…nd-chained bases

Hand-chained bases stranded #1357 in a dead branch, and squash-merging the
top of a cumulative chain (#1360) landed five PRs as one commit
(2026-09-22). gh stack link creates the stack from staging-worktree
branches without local tracking; gh stack merge lands it all-or-nothing in
order; gh stack rebase replays merged parents with --onto.
@ehartford
ehartford merged commit 1c76062 into main Sep 23, 2026
@ehartford
ehartford deleted the docs-gh-stack branch September 24, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant