檢查 changelog 是否需要根據最近的 commits 更新,並準備版本發佈。Use when the user wants to review or update changelogs before a version bump...
Analyze commits since the last release tag, draft bilingual changelog entries, and guide the version bump workflow.
| File | Language |
|---|---|
website/changelog.md |
繁體中文 (zh-TW) |
website/en/changelog.md |
English |
Both files must always be updated together with matching content.
Identify the last release tag and current version
git describe --tags --abbrev=0
node -p "require('./package.json').version"
List commits since last tag
git log <last-tag>..HEAD --oneline --no-merges
If no commits exist, report "Changelog is up-to-date" and stop.
Read current changelogs to understand existing format and the latest entry structure.
Categorize commits into:
Determine version bump type
patch: bug fixes, minor improvements, docs, testsminor: new features, significant UI changesmajor: breaking changes (rare)Draft bilingual entries in zh-TW and English. Follow the existing format:
## v{version}
_YYYY-MM-DD_
### 新功能
- **Area**: Description
### 修復
- **Area**: Description
Use today's date. Match the style of existing entries (bold area prefix, concise descriptions).
Present report in zh-TW to the user:
After confirmation, execute in order:
website/changelog.md — insert new version section after the headerwebsite/en/changelog.md — insert matching English sectiondocs: update changelog for v{version}npm version <patch|minor|major> (creates git tag automatically)Only the two most recent minor versions keep detailed per-patch entries. When a new minor version is introduced, condense the oldest of the two into the "Earlier Versions" summary section at the bottom of each changelog file.