Skip to content

About

gh extension: conventional-commit release notes from local git history, plus gh relnote create TAG

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

gh-relnote

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.)

Create a release with the notes

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.md

create 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.

Print notes only

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 flag

Grouping 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.

vs gh release create --generate-notes

--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.

Requirements

gh, git, and Python 3.11+ on PATH (stdlib only). Set PYTHON=/path/to/python3 to pick an interpreter.

How it works

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).

License

MIT

About

gh extension: conventional-commit release notes from local git history, plus gh relnote create TAG

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages