Skip to content

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

Merged
adinauer merged 4 commits intomainfrom
docs/pr-collection-branch-warning
Mar 9, 2026
Merged

docs: Improve stacked PR workflow for collection branch and merge method#5178
adinauer merged 4 commits intomainfrom
docs/pr-collection-branch-warning

Conversation

@adinauer
Copy link
Member

@adinauer adinauer commented Mar 9, 2026

📜 Description

Add two improvements to the stacked PR workflow documentation:

  1. Collection branch PR in stack list — Clarify that the collection branch PR must also be updated with the stack list when creating stacked PRs. Previously "all PRs in the stack" was ambiguous and could be read as excluding the collection branch PR.

  2. Merge method reminder on stack PRs — Add a merge commit reminder to the bottom of stack PR descriptions, since stack PRs must use merge commits (not squash). This does not apply to standalone PRs or the collection branch PR.

💡 Motivation and Context

When using the /create-java-pr skill or following pr.mdc for stacked PRs, the collection branch PR was not getting updated with the stack list. Additionally, there was no reminder about using merge commits for stack PRs, which could lead to accidentally squash-merging and causing conflicts in the stack.

💚 How did you test it?

Documentation-only changes — reviewed for correctness and consistency between pr.mdc and SKILL.md.

📝 Checklist

  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • No breaking change or entry added to the changelog.

🔮 Next steps

None — standalone docs improvement.

#skip-changelog

adinauer and others added 3 commits March 9, 2026 09:32
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>
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>
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>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR will not appear in the changelog.


🤖 This preview updates automatically when you update the PR.

@adinauer adinauer marked this pull request as ready for review March 9, 2026 13:49
@adinauer adinauer changed the base branch from feat/cache-tracing-sample to main March 9, 2026 13:50
@sentry
Copy link

sentry bot commented Mar 9, 2026

Sentry Build Distribution

App Version Configuration
SDK Size 8.34.1 (1) release

@adinauer adinauer enabled auto-merge (squash) March 9, 2026 13:58
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 308.16 ms 351.10 ms 42.94 ms
Size 0 B 0 B 0 B

Baseline results on branch: feat/cache-tracing-sample

Startup times

Revision Plain With Sentry Diff
0ceb700 305.81 ms 355.91 ms 50.10 ms
855766f 364.82 ms 427.16 ms 62.35 ms
eeb463c 311.36 ms 371.79 ms 60.43 ms
b2b863f 338.62 ms 376.54 ms 37.92 ms

App size

Revision Plain With Sentry Diff
0ceb700 0 B 0 B 0 B
855766f 0 B 0 B 0 B
eeb463c 0 B 0 B 0 B
b2b863f 0 B 0 B 0 B

@sentry
Copy link

sentry bot commented Mar 9, 2026

Sentry Build Distribution

App Version Configuration
SDK Size 8.34.1 (1) release

@adinauer adinauer merged commit b1045ed into main Mar 9, 2026
63 checks passed
@adinauer adinauer deleted the docs/pr-collection-branch-warning branch March 9, 2026 14:29
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.

2 participants