Title: docs: document changeset branch hygiene — prevent cross-PR changeset leaks · Issue #754 · github/squad · GitHub
Open Graph Title: docs: document changeset branch hygiene — prevent cross-PR changeset leaks · Issue #754 · github/squad
X Title: docs: document changeset branch hygiene — prevent cross-PR changeset leaks · Issue #754 · github/squad
Description: Problem When a feature branch carries commits from other PRs (e.g., via merge or cherry-pick), their .changeset/*.md files leak into the new PR's diff. This happened on PR #753 which accidentally included #752's pr-readiness-checks.md ch...
Open Graph Description: Problem When a feature branch carries commits from other PRs (e.g., via merge or cherry-pick), their .changeset/*.md files leak into the new PR's diff. This happened on PR #753 which accidentally i...
X Description: Problem When a feature branch carries commits from other PRs (e.g., via merge or cherry-pick), their .changeset/*.md files leak into the new PR's diff. This happened on PR #753 which accidental...
Opengraph URL: https://github.com/github/squad/issues/754
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs: document changeset branch hygiene — prevent cross-PR changeset leaks","articleBody":"## Problem\n\nWhen a feature branch carries commits from other PRs (e.g., via merge or cherry-pick), their .changeset/*.md files leak into the new PR's diff. This happened on PR #753 which accidentally included #752's pr-readiness-checks.md changeset.\n\n## Root Cause\n\nBranch scope pollution — the branch wasn't rebased cleanly from dev before the PR was opened.\n\n## Fix\n\nAdd guidance to CONTRIBUTING.md about changeset hygiene:\n\n1. Always rebase from dev before opening a PR\n2. Check \\git diff origin/dev --name-only -- .changeset/\\ — you should only see YOUR changeset file(s)\n3. If you see someone else's changeset, revert it: \\git checkout origin/dev -- .changeset/{file}\\\n\n## Optional CI Enhancement\n\nThe PR readiness workflow could warn when changeset files in the diff don't match the PR's scope (future work, low priority).\n\n## Next Steps\n\nUpdate CONTRIBUTING.md with a 'Changeset Hygiene' section covering the above guidance.","author":{"url":"https://github.com/diberry","@type":"Person","name":"diberry"},"datePublished":"2026-04-02T19:39:50Z","url":"https://github.com/github/squad/issues/754"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:26bd46e1-8767-2ac0-af8a-dfd78c5ceff4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD4E:6365:1FB0A45:2A45993:6B017DD9 |
| html-safe-nonce | 7bb914784a82a3b93f56dc217295a80d48745ee681b39b49bfab14716190b979 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDRFOjYzNjU6MUZCMEE0NToyQTQ1OTkzOjZCMDE3REQ5IiwidmlzaXRvcl9pZCI6IjU1OTAwNzAyMDcyMjI3NDI0ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a91fdb0795337e9866b440e0fa4a862a7cd32ec74ed4474090bd14bff77a688e |
| hovercard-subject-tag | issue:4196597927 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/squad/754/issue_layout |
| twitter:image | https://opengraph.githubassets.com/15425c9cdb1d76ccc1f4f8e78c98b844c6c853afcb9b7ac0b98fbde0f7ea7b3b/github/squad/issues/754 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/15425c9cdb1d76ccc1f4f8e78c98b844c6c853afcb9b7ac0b98fbde0f7ea7b3b/github/squad/issues/754 |
| og:image:alt | Problem When a feature branch carries commits from other PRs (e.g., via merge or cherry-pick), their .changeset/*.md files leak into the new PR's diff. This happened on PR #753 which accidentally i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | diberry |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/github/squad git https://github.com/github/squad.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151205052 |
| octolytics-dimension-repository_nwo | github/squad |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151205052 |
| octolytics-dimension-repository_network_root_nwo | github/squad |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width