A GitHub CLI extension that turns your conventional commits into a GitHub Release body, from local git history. No API calls to build the notes, no config file.
Listed in awesome-gh-extensions (auto-updated list of repositories with the gh-extension topic).
gh extension install loki-inu/gh-relnote
gh relnote## What's changed
### Features
- **cli:** add sync (`b22b22b`) — Ada Lovelace
### Fixes
- handle commas in tags (`d44d44d`) — Ada Lovelace
---
Range: `v1.0.0` → `HEAD`.(Synthetic example.)
gh relnote create v1.3.0 --draft
gh relnote create "$(gh relnote --next-version)" # let relnote pick the tag (feat → minor, fix → patch)
gh relnote create v1.3.0 --title "v1.3.0" -- --no-bots --max 50
gh relnote create v1.3.0 -- --changelog CHANGELOG.md --changelog-title v1.3.0 # also prepend to CHANGELOG.mdcreate runs relnote for latest tag → HEAD, then calls gh release create TAG ... --notes-file <notes>. Everything before -- goes to gh release create (--draft, --prerelease, --title, --target, asset files). Everything after -- goes to relnote.
gh relnote # latest tag → HEAD
gh relnote --since v1.2.0 --no-bots
gh relnote --output notes.md --quiet
gh relnote --next-version # e.g. v1.4.0
gh relnote --path packages/api --tag-prefix api/v # one package in a monorepo
gh relnote --help # every flagGrouping follows Conventional Commits: feat → Features, fix → Fixes, type! or BREAKING CHANGE → Breaking, everything else → Other. Merge commits are skipped by default, --no-bots drops dependabot and renovate, and subjects that look like tokens or keys are never printed.
--generate-notes builds notes from merged pull requests on GitHub. gh relnote builds them from commit messages in your clone, grouped by commit type, so it works for direct-to-main repos, offline, and before you push.
gh, git, and Python 3.11+ on PATH (stdlib only). Set PYTHON=/path/to/python3 to pick an interpreter.
This extension bundles relnote (v0.3.7), a zero-dependency Python CLI that's also available as a GitHub Action. Use relnote directly if you don't use gh (brew install loki-inu/tap/relnote or pip).
MIT