Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Workflow recipe

Write release notes from git history

Turn merged pull requests into notes users can read, with every line checked against the diff before publishing.

By Checked Beginner1 h6 steps
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

To write release notes from git history with AI, collect the merged pull requests and commits for the release range, write down who reads the notes and in what format, and have a coding agent draft each line with its source. Check every line against the actual diff, edit for the reader and publish as a draft release first.

Commit messages are written for developers at the moment of the change: “fix race in cache invalidation”, “bump deps”, “address review”. Release notes are written for users after the fact: what can I do now that I could not before, what changed under me, and do I need to do anything. Turning one into the other is tedious, which is why so many changelogs are just a list of pull request titles.

A coding agent is good at the translation because it can read the pull requests and the diffs, not just the titles. It is also prone to one specific failure: describing what a pull request says it does rather than what the code does. This recipe adds a check against the diff for every line, so the notes are accurate as well as readable.

TerminalAbout 10 min

1. Collect the raw material for the release range

Pick the range: from the last release tag to the commit you are releasing. Look at what is in it:

git log v1.4.0..HEAD --oneline --no-merges
git diff --stat v1.4.0..HEAD
gh pr list --state merged --base main --search "merged:>=2026-10-01" --limit 100 \
  --json number,title,labels,body,author

Replace the tag and date with your previous release. Pull request bodies usually explain the why better than commit messages, so the agent will use both. If your team writes Conventional Commits (feat:, fix:), the git-commit skill helps keep them consistent for next time.

EditorAbout 10 min

2. Write down who reads the notes and the format

Release notes for an API are different from notes for a mobile app. Write a short brief once and keep it in the repository, for example docs/release-notes-guide.md:

# Release notes guide

Readers: developers who use our API and SDKs. They skim.

Sections, in this order, skip empty ones:
1. Breaking changes: what breaks, who is affected, exactly what to do.
2. New: features users can use now.
3. Improved: noticeable changes to existing behaviour.
4. Fixed: bugs users could have hit, described by symptom.

Rules:
- One line per item, starting with a verb. Link the PR: ([#123](...)).
- Describe the effect for the user, not the implementation.
- Leave out: refactors, test changes, CI, dependency bumps without user impact.
- Security fixes: say "Fixed a security issue in X", link the advisory if there is one, no exploit details.

Claude CodeAbout 15 min

3. Draft the notes with a source for every line

Draft release notes · Claude Code, Codex or Cursor
Draft release notes for [VERSION], covering [PREVIOUS TAG]..HEAD. 1. Read docs/release-notes-guide.md and follow it. 2. List merged PRs with: gh pr list --state merged --base main --search "merged:>=[DATE OF PREVIOUS RELEASE]" --limit 100 --json number,title,labels,body 3. Also read git log [PREVIOUS TAG]..HEAD --no-merges for changes that did not go through a PR. 4. For every PR you include, read its diff (gh pr diff NUMBER) before describing it. Describe what the code changes, not just what the title says. Output two things: - The release notes in Markdown. - A source table: each line of the notes, the PR or commit it comes from, and the file in the diff that shows the change. List separately anything you left out and why, and anything you were unsure how to describe.

The source table is the important part. It makes the next step possible and it shows you which lines the agent wrote from titles alone.

EditorAbout 15 min

4. Check each line against the diff

Go through the source table. For each line, open the referenced file in the diff and ask: does the code do what this line says, for the users this line implies? The common errors:

  • A pull request titled “Add CSV export” that only adds the backend; the button ships next release.
  • A fix described as complete when it only covers one of two code paths.
  • A behaviour change hidden in a refactor, which belongs under “Breaking changes” and is missing entirely.
  • A feature behind a flag that is off by default, described as available.

For the last two, ask the agent directly:

Look for hidden changes · Claude Code
Look at git diff [PREVIOUS TAG]..HEAD for changes users could notice that are not in the draft notes: changed defaults, removed or renamed options, changed API responses or status codes, new required configuration, changed environment variables, and features behind flags that are off by default. List each with the file and line, and say whether it belongs under Breaking changes.

Fix the notes by hand where they are wrong. When a line is uncertain, ask the pull request author rather than guessing.

EditorAbout 5 min

5. Edit for the reader

Read the notes as a user who has two minutes. Breaking changes need exact instructions (“rename timeout to timeoutMs in your client config”). Fixes should describe the symptom users saw (“Exports no longer time out for accounts with more than 10,000 rows”), not the cause. If the draft sounds like marketing copy or generic AI prose, the humanizer skill can flag the usual tells, or just cut adjectives until it reads like a colleague wrote it.

GitHubAbout 5 min

6. Publish as a draft release first

Save the notes to a file and create a draft release, so someone else can read it on GitHub before it is public:

gh release create v1.5.0 --draft --title "v1.5.0" --notes-file release-notes.md --verify-tag

--verify-tag stops the command if the tag does not exist yet, rather than creating one from the default branch. Ask one person who did not write the notes to read the draft, then publish.

Check it worked

Verification checklist

0 of 7 done

When it goes wrong

If the agent describes things that are not in the release, it probably read pull requests outside the range. Search by merge date and base branch, or list the PR numbers from git log and give it only those.

If the notes are a list of pull request titles reworded, the agent did not read the diffs. Ask for the source table with file names; it cannot fill that in from titles alone.

If a breaking change was missed and users report it, add it to the published notes with a dated correction, and add “check for changed defaults and renamed options” to your guide so the next draft looks for it.

If release ranges are huge (hundreds of PRs), split by area or label and draft each section separately. Long lists produce generic summaries.

Variations

For a changelog file instead of GitHub releases, keep the same sections and add the new version at the top of CHANGELOG.md. The agent can follow the format of the existing entries.

For internal release notes (for support or sales teams), add a section on what to tell customers and which tickets the release closes, and leave the PR links in.

To automate the draft, run the step 3 prompt in CI when a release tag is pushed and attach the result to a draft release. Keep publishing manual: the check in step 4 is the part that makes the notes trustworthy.

The same agent can triage GitHub issues with AI as they come in, and the AI weekly status report recipe uses the same draft-then-check pattern for your own updates. If you have not used a coding agent on a repository yet, start with your first Claude Code session. More recipes are in the AI workflow examples hub.

Outcome and tools

Outcome
User-facing release notes for one version, grouped by what changed for users, with each line traced to a pull request and checked against the code.
For
Developers, Product managers
Variants for
Claude Code, Codex, Cursor
Back to top