Repository navigation
feat: orchestrate Changeset validation - #101
Merged
Merged
Conversation
cryptodev-2s
approved these changes
Oct 22, 2026
cryptodev-2s
left a comment
Contributor
There was a problem hiding this comment.
One minor nit otherwise looks good to me8
| import path from 'node:path'; | ||
|
|
||
| const CHANGESET_DIRECTORY = '.changeset'; | ||
| const IGNORED_FILES = new Set(['README.md']); |
Contributor
There was a problem hiding this comment.
Nit: nit do we want to Mirror https://github.com/changesets/changesets/blob/main/packages/read/src/index.ts#L9 at least AGENTS.md I believe we would want to leave instructions here on how agents can write changesets ?
Contributor
Author
There was a problem hiding this comment.
We can add it late if it's really a problem but I would expect us to store this outside of this folder
This branch was successfully deployed
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.
Explanation
The package can validate one Changeset file, but consumers still have to find and read every Changeset themselves. This PR adds repository-level orchestration:
lintChangesetsvalidates every pending Changeset in a repository. It skipsREADME.md, non-Markdown files, and nested directories. It fails clearly if.changeset/or a Changeset file cannot be read.This PR adds only the library API. The CLI and CI integration remain separate.
References
Checklist