一键导入
changelog
// Generate or update the CHANGELOG.md for a new release version. Use when the user says "generate changelog", "update changelog", "write release notes", or asks to prepare a changelog for a version like "changelog for 0.5.3".
// Generate or update the CHANGELOG.md for a new release version. Use when the user says "generate changelog", "update changelog", "write release notes", or asks to prepare a changelog for a version like "changelog for 0.5.3".
| name | changelog |
| description | Generate or update the CHANGELOG.md for a new release version. Use when the user says "generate changelog", "update changelog", "write release notes", or asks to prepare a changelog for a version like "changelog for 0.5.3". |
Generate a changelog entry for a new release by analyzing merged PRs since the last tag.
The user provides:
0.5.3git tag --sort=-version:refname | head -1git log <tag>..HEAD --merges --format='%s' | grep -v "Merge branch"gh pr list --state merged --base main --search "merged:><tag-date>" --json number,title,author --limit 50git log <tag>..HEAD --format='%an' --no-merges | sort | uniq -c | sort -rnTo determine if a contributor is external, check for an @entire.io email:
git log --all --format='%an <%ae>' --author="<name>" | sort -u
If they have an @entire.io email anywhere in git history, they are internal. Only list external contributors in the Thanks section.
Also check the memory file at memory/project_team_members.md for known internal/external mappings.
Insert the new version section at the top of CHANGELOG.md, after the header and before the previous version.
Follow the existing style in CHANGELOG.md exactly:
## [X.Y.Z] - YYYY-MM-DD
### Added
- Feature description with context ([#123](https://github.com/entireio/git-sync/pull/123))
### Changed
- Change description ([#456](https://github.com/entireio/git-sync/pull/456))
### Fixed
- Bug fix description ([#789](https://github.com/entireio/git-sync/pull/789))
### Housekeeping
- Maintenance item ([#101](https://github.com/entireio/git-sync/pull/101))
### Thanks
Thanks to @contributor for description of contribution!
[#N](https://github.com/entireio/git-sync/pull/N)