Create Changeset from Git History
Create a changeset for the current branch automatically:
- Gather all changes:
- Run
git log main..HEAD --onelineto get all commits on this branch - Run
git diffto see unstaged changes - Run
git diff --cachedto see staged changes
- Run
- Analyze the commits and current changes to determine the semver bump:
majorif any commit contains "BREAKING" or "!"minorif any commit starts with "feat"patchotherwise (fix, chore, refactor, docs, etc.)
- Generate a concise summary (1-2 sentences) describing all changes (commits + uncommitted)
- Create a changeset file by running
bunx changeset add --emptythen editing the created file, OR by directly writing a new file to.changeset/with a random kebab-case name (e.g.,tall-lions.md)
The changeset file format:
---
'cli-lsp-client': <patch|minor|major>
---
<your generated summary>
Do not ask any questions - determine everything from the git history and create the changeset file directly.
Source: eli0shin/cli-lsp-client — distributed by TomeVault.