SIGN IN SIGN UP

docs: Improve stacked PR workflow for collection branch and merge method (#5178)

* docs: Add collection branch safety warnings to PR workflow

Add explicit warnings to pr.mdc and create-java-pr skill that the
collection branch must never be manually merged or fast-forwarded.
Updating it causes GitHub to auto-merge all stack PRs and delete
their branches, destroying the entire stack.

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: Include collection branch PR in stack list updates

The stack list update instructions only mentioned "all PRs in the
stack" which was ambiguous — it could be read as excluding the
collection branch PR. Now both pr.mdc and the create-java-pr skill
explicitly call out that the collection branch PR must also be updated
with the stack list.

Co-Authored-By: Claude <noreply@anthropic.com>

* docs: Add merge commit reminder to stack PR descriptions

Stack PRs must be merged with merge commits, not squash. Add a
reminder to the PR description so reviewers/mergers pick the right
method. This only applies to stack PRs — not standalone PRs or the
collection branch PR.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
A
Alexander Dinauer committed
b1045ed46a79eb58f9d2cd96d57dcaa150b4346b
Parent: 6a6b6c6
Committed by GitHub <noreply@github.com> on 3/9/2026, 2:29:36 PM