en un clic
release-notes
// Generate release notes for a new version by analyzing commits since the last git tag. Groups changes into categorized sections with contributor attribution.
// Generate release notes for a new version by analyzing commits since the last git tag. Groups changes into categorized sections with contributor attribution.
| name | release-notes |
| description | Generate release notes for a new version by analyzing commits since the last git tag. Groups changes into categorized sections with contributor attribution. |
| argument-hint | ["version"] |
| disable-model-invocation | true |
| allowed-tools | Bash(git *) Bash(gh *) |
Generate release notes for this ConnectLife Home Assistant integration release.
Determine the version to release:
$ARGUMENTS is provided, use that as the versioncustom_components/connectlife/manifest.jsonFind the previous release tag:
git describe --tags --abbrev=0 HEAD
If HEAD is already tagged, use git describe --tags --abbrev=0 HEAD^ to find the previous tag.
Get all commits since that tag:
git log <previous_tag>..HEAD --pretty=format:"%H %s" --reverse
For each commit, inspect the commit message. Extract:
(#123) in the message)git log --format="%an" -1 <hash> and git log --format="%ae" -1 <hash>)gh pr view <number> --json author --jq '.author.login'Categorize each commit into sections based on its content:
data_dictionaries/)For device mapping commits, identify which device types and feature codes were added/changed by looking at the files modified:
git diff-tree --no-commit-id --name-only -r <hash>
Come up with a cool release name.
Format the release notes following this template. Do NOT include a v prefix on the version in the title line.
<version> <release name>
## Highlights
<2-4 bullet summary of the most notable changes in this release>
- Do NOT include PR references (#123) or contributor mentions in Highlights — those belong in the detail sections below.
## New devices
- <device_type_code>-<device_feature_code> (<model name if known>) #PR by @contributor
- ...
## Improvements to existing devices
- <device_type_code or device_type_code-feature_code>: <description of change> #PR by @contributor
- ...
## Bug fixes
- <description> #PR by @contributor
- ...
## Breaking changes
- <description of what changed and what users need to do> #PR
- ...
## General improvements
- <description> #PR by @contributor
- ...
## Translation improvements
- <description> #PR by @contributor
- ...
## Contributors
The following have contributed to changes in this release — thank you very much!
<list of @contributor mentions, excluding the repo owner @oyvindwe>
**Full Changelog**: https://github.com/oyvindwe/connectlife-ha/compare/<previous_tag>...v<version>
#123 format for PR references (short form, not full URLs)@username format for GitHub contributors025-1wj100404v0w)DelayEndTime, state_class)gh pr view <num> --json body --jq '.body')