Documentation
README
changelog โ write a changelog from a commit/PR range
Turn a range of history into a clear changelog entry that a user can read to decide whether and how to upgrade.
Gather the range
Establish the range first. Honor an explicit one ("since v1.2.0", "the last 10
commits", "PRs merged this week"); otherwise default to commits since the most
recent tag (git describe --tags --abbrev=0 then git log <tag>..HEAD).
Collect the raw material yourself with sys_os_shell:
git log <range> --no-merges --pretty=format:'%h %s'for the commit subjects.git log <range> --mergesorgh pr list --search "merged:>=<date>"for PRs.git diff <range> --statto see the surface area, andgh pr view <n>for a PR's intent when a subject line is terse.
This is the opening of the README. Read the full README on GitHub.