mit einem Klick
generate-changelog
// Generate changelog entries for packages changed on the current branch.
// Generate changelog entries for packages changed on the current branch.
| name | generate-changelog |
| description | Generate changelog entries for packages changed on the current branch. |
| allowed-tools | Read, Edit |
| disable-model-invocation | true |
Generate concise changelog entries for each package with changes on the current branch compared to main, and insert them into the package CHANGELOG.md files.
Changed files:
!git fetch origin main 2>/dev/null; git diff --name-only origin/main 2>/dev/null
Commit messages (check for Changelog-ignore directives):
!git log --pretty=format:'%B---' origin/main..HEAD 2>/dev/null
Diff for all packages:
!git diff origin/main -- packages/ 2>/dev/null
From the changed files above, determine which packages need entries:
packages/<name>/src/** mean <name> is changed — extract the second path component as the package name.typescript/, treat ragbits-chat as a changed package.packages/*/src/ and typescript/ (docs, scripts, CI, etc.).Check the full commit messages for lines matching Changelog-ignore: <package-name>. Skip any listed package entirely.
Read packages/<package>/CHANGELOG.md. Look at existing entries to understand the style used in this package.
Using the commit messages and the package diff above, write a changelog entry following these rules:
feat:, fix:, refactor:, docs:, test:, chore:, etc.Edit packages/<package>/CHANGELOG.md — add entries after ## Unreleased as bullet points:
## Unreleased
- <new entry here>
After all packages are processed, report: