Repository navigation
chore: stop changeset files from reappearing in PRs - #6406
Merged
Merged
Conversation
The repo migrated off @changesets/* to conventional-commit-driven releases (scripts/release/ reads commit subjects from git log <lastTag>..HEAD), but .changeset/ has been removed twice already (5afa55f, 1e5ba68) and five open PRs currently carry changeset files again. Two mechanisms keep feeding it: contributor forks whose default branch still has the pre-cleanup .changeset/ debris, and plain convention inference — the repo reads as a Changesets repo (pnpm monorepo, Changesets-formatted CHANGELOG.md files, "chore: release" PRs) and nothing anywhere said otherwise. - CONTRIBUTING.md: explain that we used Changesets, what replaced it, and what to do instead (a good conventional commit subject). - AGENTS.md / CLAUDE.md: same rule for coding agents, which author most of these PRs and don't read CONTRIBUTING.md. - static / check binaries: fail on added .changeset/* files, so this stops depending on review catching it. Filters on added/modified only, so a PR that deletes stale changesets still passes. - .oxfmtrc.json: drop the ignore entry for the long-gone vendored .github/actions/changesets-action, a stale "we use changesets" signal. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Contributor
|
Size Change: 0 B Total Size: 1.22 MB ℹ️ View Unchanged
|
BenTaylorDev
marked this pull request as ready for review
August 5, 2026 20:38
BenTaylorDev
requested review from
jpr5,
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
August 5, 2026 20:38
MikeRyanDev
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Community PRs keep arriving with
.changeset/*.mdfiles even though the repo migrated off Changesets to conventional-commit-driven releases..changeset/has now been deleted frommaintwice (5afa55f067on 2026-06-16,1e5ba689e0on 2026-07-29) and five open PRs carry changeset files today (#6287, #6289, #6290, #6292, #6346).Three mechanisms keep feeding it:
rodboev/CopilotKit's default branch still contains 10 of the pre-cleanup.changeset/*.mddebris files. Three of the five open PRs come from that fork — the contributor's agent opens the repo, sees a directory full of changesets, and adds one more. (Noconfig.json, and@changesets/cliisn't installed anywhere, so these are hand-written by agents, not CLI output.)main. The two files Tyler removed in1e5ba689e0arrived via 2026-06-10-authored branches (🐛 Bug: When using Anthropic next assistant message is appended to previous one #2910, fix(runtime): coalesce consecutive same-role Anthropic messages before dispatch #5360) merged on 2026-07-25 — they sat onmainfor four days, and anyone who forked in that window inherited the directory. His hunch in that commit message was right..changeset/does not exist, and it still has one. The repo reads as a Changesets repo: pnpm workspace monorepo, per-packageCHANGELOG.mdin Changesets' exact### Patch Changesoutput format,chore: release monorepo vX.Y.Zrelease PRs. Nothing inCONTRIBUTING.md, the PR template,AGENTS.md,CLAUDE.md, or.claude/docs/said otherwise, so the guess was well-supported.This PR closes all three off:
CONTRIBUTING.md— new "Changelogs and releases — do not add a changeset" section: we did use Changesets,scripts/release/now builds changelogs from commit subjects,.changeset/*.mdis inert, write a good conventional commit subject instead, and leave versions/changelogs to maintainers. Includes a note to rebase old forks.AGENTS.md/CLAUDE.md— the same rule as an Essentials bullet. This is the highest-leverage change: the contributors doing this are coding agents, and agents load these files automatically while mostly not readingCONTRIBUTING.md.static / check binaries— fail the PR on added.changeset/*files, so this stops depending on review catching it (which is what failed in July and restarted the loop). Added to the existing forbidden-files gate rather than a new workflow: it already runs on every PR tomain, is fork-safe (contents: read, no secrets), and has exactly thisgit diff --name-only origin/BASE...HEAD+VIOLATIONSshape. Filters on--diff-filter=AMso a PR that deletes stale changesets still passes..oxfmtrc.json— drop the ignore entry for.github/actions/changesets-action/src/run.ts, a path that hasn't existed for a long time. It was the last grep-visible "we use changesets" signal in a root config file.Related PRs and Issues
1e5ba689e0("fix: remove all changesets"), whose commit message asked for exactly this: a durable record of the decision that future agents can find.Testing
Docs + CI-config change, so verification focused on the guard.
actionlintwas run on the workflow, then the step body was extracted withyqand executed against real branches.Lint / parse:
True positive — real head of #6292, via
yq '.jobs.check-binaries.steps[1].run'piped to bash withBASE_REF=main:True negative — same script on this branch, which has five changed files and no changesets:
Delete-safety — a commit that removes changesets must not be punished. Using the real cleanup commit (
8806f668d1...1e5ba689e0):Not verified locally: the gate firing in real GitHub Actions — that needs this PR's own CI run (the
static / check binariescheck on this PR exercises the true-negative path).🤖 Generated with Claude Code