Generate release notes from git commits since the last version tag. Usage: /release-notes
Generate structured release notes for the current version of eMedia.
Get the current version from the root pom.xml:
mvn help:evaluate -Dexpression=project.version -q -DforceStdout
Get the last release tag:
git describe --tags --abbrev=0
Get commits since the last tag:
git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-merges
If no tag exists, use git log --oneline --no-merges for all commits.
Group commits by type using these categories:
feat, add, implement, support, newfix, bug, resolve, correctimprove, enhance, update, upgrade, refactorOutput as Markdown in this format:
## eMedia <version> — <today's date>
### Features
- <commit summary>
### Bug Fixes
- <commit summary>
### Improvements
- <commit summary>
### Dependencies
- <commit summary>
Omit empty sections. Strip JIRA ticket prefixes (e.g. PLCB-12345) from the start of commit messages — keep the description only. Capitalise the first letter of each entry.
Print the result to stdout so it can be copied into a GitLab release or CHANGELOG.md.