Taglore is a GitHub Action and CLI that
turns a version tag into release notes people actually read. Push v1.9.0 and it
picks the right earlier version to compare against, asks GitHub Copilot to describe the
change for users, checks every statement against the real commits, and publishes the result
to GitHub Releases, a folder in your Docker build, an artifact or S3. Your app shows it in a
What's New dialog and a changelog page, without a backend, a SaaS widget or an AI call at
runtime. Writing the text is the easy part. The work is in deciding what to compare, what to
trust, and where the history lives.
Generating the text is a commodity. Deciding what to compare, and what to trust, is the actual product.
Why another release notes tool
Existing tools split into three camps, and none of them did what I needed for our own web apps.
- Commit formatters. git-cliff,
Release Please and
semantic-release turn Conventional Commits into a changelog. Excellent for developers.
But
fix: null check in parserstays exactly that, and no customer cares. - AI generators. Tools like
communique and a long tail of small
Actions feed commits or diffs to an LLM and write a GitHub Release or
CHANGELOG.md. Better prose, but they stop at GitHub. - Hosted changelog products such as ReleasePad do the full loop, in-app widget included. It works, but it puts another vendor between your release and your users.
I wanted the third camp's result with none of its infrastructure: notes that ship with the exact image they describe, served by the app itself, readable from any language. So Taglore is two things. A generator that runs in CI, and a tiny client that shows the result once per user.
Which versions to compare: the part most tools get wrong
Comparing a tag with the previous tag sounds obvious, and it is wrong for minor releases. If
you ship v1.8.0, then three patches, then v1.9.0, a user who opens
the app after the upgrade experienced everything since 1.8.0. Comparing 1.9.0 with 1.8.3
hides most of it. Taglore's default compare: auto follows Semantic Versioning
instead:
- Major (
v2.0.0) compares with the last minor,v1.9.0, and creates a new announcement. - Minor (
v1.9.0) compares with the previous minor,v1.8.0, so every 1.8.x patch is covered. New announcement. - Patch (
v1.9.1) compares with the previous tag. It gets AI notes for the GitHub Release and the changelog, but the app keeps showing the 1.9.0 announcement. Nobody needs a popup for a bug fix. - Prereleases are never used as a base. The first release compares from the root commit and drops "breaking changes", because nothing existed to break.
The patch rule is the interesting one. Every release carries a taglore.json with
its notes. On a patch, Taglore takes the notes of the last announced release and writes them
as latest.json, so the Docker image for 1.9.1 still contains the 1.9.0 What's
New, and users who already dismissed it never see it again. If a patch deserves its own
dialog, patch-notes: announce gives it one.
Only step 04 involves AI, and its output is checked before anything leaves the runner. Everything else is git and file handling.
All of it can be overridden. compare also takes previous-tag,
previous-minor, previous-major, or explicit with any two
refs. And unreleased: true writes an "Upcoming" entry from the last tag to
HEAD for a staging environment, with no release and no popup.
Running Copilot CLI in CI without handing it the keys
GitHub documents running
Copilot CLI programmatically
with copilot -p, and most examples pre-approve shell tools so the agent can run
git show itself. I didn't want an agent with shell access inside a release
workflow that holds a contents: write token. So Taglore does it the other way
round:
- Taglore collects the commits, the changed file list and the diff itself.
- Copilot runs with no tools allowed, in an empty temporary folder, with
--no-ask-user. It can read the prompt and return JSON. That's it. - Lockfiles, build output, binaries, images,
.env*,*.pemand*.keynever enter the prompt. - Big prompts go through stdin, because Linux caps a single argument at 128 KiB and a real diff hits that faster than you'd think.
The prompt has one budget, 300 KB by default, for commits, file list and diff together.
That's roughly 75 to 90 thousand tokens, inside the context of every Copilot CLI model. When a
release doesn't fit, the budget goes to user-facing code first, and tests, CI, docs and
config go last. focus-paths sets your own order. The log and the review page
then say exactly what the model saw, so a partial picture is never a silent one.
Authentication has one trap. GitHub's
Actions guide
shows Copilot CLI working with the built-in GITHUB_TOKEN plus the
copilot-requests: write permission, but that path depends on an organization
policy that bills Copilot CLI to the org. On a personal repository the same call fails with
"Access denied by policy settings". The fix is a fine-grained token with the Copilot Requests
permission:
on:
push:
tags: ["v*"]
permissions:
contents: write
# Organization repos: add copilot-requests: write and drop copilot-token
jobs:
release-notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # tags and history, or Taglore refuses to run
- uses: d2k-klin/taglore@v1
with:
copilot-token: ${{ secrets.COPILOT_TOKEN }}
model picks any model your Copilot plan allows. Without Copilot,
ai-provider: github-models uses the GitHub Models API with the workflow token
(its free tier allows 8,000 input tokens per request, so the budget drops to 20 KB), and
ai-provider: none writes notes from Conventional Commits only. If the AI call
fails for any reason, Taglore falls back to commit-based notes and the release continues. A
release pipeline should not go red because a model had a bad minute.
Treat the model's output as untrusted input
Release notes from an LLM end up in front of every user of your product. That makes them an injection surface: a commit message or a code comment can contain instructions, and a model that follows them can put a phishing link into your What's New dialog. I assume that will happen eventually and design so it doesn't matter.
- Narrow contract. The model returns only
title,summary,highlights,improvements,fixesandbreaking. Versions, dates, links and the commit list come from Taglore, never from the model. - Schema validation, with one second chance. The answer is parsed against a schema with length and count limits. If it fails, the model gets one retry that lists exactly what was wrong. If length is the only problem, Taglore shortens the text itself and saves the request.
- Rules checked in code. Commit hashes in user-facing text are always flagged, and
forbidden-termskeeps environment names and codenames out. A hit gets the same corrective retry;style-check: strictfails the run instead of publishing. - Sanitizing. HTML tags, Markdown links, bare URLs,
javascript:anddata:schemes, bidi control characters and code fences are stripped. - Plain-text rendering. Both What's New clients set
textContent, neverinnerHTML. A title containing<img src=x onerror=...>renders as visible text, which I tested in a real browser because "should be fine" is not a test.
All of that makes the output safe. It doesn't make it true. A model can write a perfectly
clean sentence about a feature that isn't in the release. So every statement must carry
evidence: the model lists the commit hashes behind each item, and Taglore checks them against
the real commit range. A made-up hash, or one from outside this release, doesn't count. A
statement left without a real commit is reported (evidence: warn) or removed
(evidence: strict).
Commits also don't know everything. They don't say which features are switched on in
production, or that a change only reached some customers. facts-file takes a path
like docs/release-facts/{version}.md, and facts-command runs a script
that gets the version range in its environment. Either way the model gets facts for that one
release, and every statement still needs commits behind it.
For releases that matter, put a human in front. preview-file writes one page with
the dialog as users will see it, next to the commits behind every line, plus what the model
saw of the diff. Run the publish job in a GitHub Environment with required reviewers and hand
it the reviewed file:
- uses: d2k-klin/taglore@v1
with:
evidence: strict # no real commit, no statement
publish-github-release: false
output-dir: release-notes
preview-file: review/preview.html # what users see + the commits behind it
# later, in the job that needs approval:
# notes-from: release-notes/release.json publishes exactly what was reviewed
Getting the notes into any app, in any language
Nothing about this is framework-specific. Taglore writes plain files:
latest.json: the announcement the app should show (this release, or the last one that announced).release.json: structured notes for exactly this release.history.json: every release, newest first, for a changelog page.RELEASE_NOTES.md: the same Markdown as the GitHub Release.
Point output-dir at the Docker build context, run Taglore before
docker build, and copy the folder wherever your stack serves static files.
nginx, Express, FastAPI, Spring Boot and ASP.NET need one COPY line. Go can
compile the files straight into the binary:
//go:embed release-notes
var notesFS embed.FS
func main() {
sub, _ := fs.Sub(notesFS, "release-notes")
http.Handle("/release-notes/", http.StripPrefix("/release-notes/", http.FileServer(http.FS(sub))))
log.Fatal(http.ListenAndServe(":8080", nil))
}
On the frontend there's a framework-free web component for plain HTML, server templates,
Vue, Angular or Svelte, and a React component for React and Next.js. With
web-components: true, Taglore writes the web components as one dependency-free
file next to the JSON, so the app serves its own dialog from its own origin. No npm, no CDN:
<script type="module" src="/release-notes/taglore-whats-new.js"></script>
<taglore-whats-new src="/release-notes/latest.json" storage-key="myapp:whats-new"></taglore-whats-new>
<taglore-changelog src="/release-notes/history.json"></taglore-changelog>
The dialog shows an announcement once per browser, and new visitors start "up to date", so
nobody's first impression of your product is an announcement about last month. The popup is
optional. With no-auto-open (or autoOpen={false} in React) it never
opens by itself; the component reports an unseen announcement, the app puts a dot on its own
"What's new" menu item, and opens the dialog on click.
Mobile and desktop clients need ten lines against the JSON schema. The examples folder has working setups for nginx, Node.js, Python, Go, Java, .NET and Next.js.
Where the history lives, without a database
There is no database. By default the history is your GitHub Releases: each one carries its
taglore.json, and every run rebuilds history.json from them. A
rollback rolls back the announcement too, because the notes are inside the image.
Taglore creates each release as a draft, attaches the files, and only then publishes it. That order matters for repositories with immutable releases switched on, where files can't be added after publishing. A release someone else already published still gets its notes, because titles and text stay editable.
If you'd rather not tie the history to release files at all, or don't use GitHub Releases,
history-branch keeps history.json and latest.json in a
branch of their own, one commit per run. Two runs that collide are merged, not overwritten.
The CLI does the same with a plain --history-file you keep wherever you like.
New adopters have a cold start: a changelog with one entry, and a first patch with no earlier
announcement to reuse. backfill: 20 writes notes for the 20 earlier tags on the
first run, oldest first, with the same compare rules. Existing release text stays below
Taglore's notes, none of the old releases takes the "Latest" badge or pops up in the app, and
tags that already have notes are skipped, so the option can stay on. Each tag it writes is
one Copilot request.
Security notes and an SBOM per release
Release notes tell users what got better. With security-scan: true, Taglore also
tells them what got safer, and leaves an SBOM behind as evidence.
Syft builds a CycloneDX SBOM and
Grype scans it, for the released tag and for
the version it is compared with. The notes get a Security section: known vulnerabilities this
release fixes, introduces and leaves open, plus dependency and license changes.
security.json and sbom.cdx.json go out with the other files.
Two decisions matter more than the scanners. The security facts never pass through the model, because a paraphrased CVE count is worse than none. And both versions are checked against the same vulnerability database, downloaded once and then frozen. Otherwise a CVE published last night shows up as "introduced" by your release, which is wrong and makes people stop reading.
Lockfiles don't show what the base image brings, so security-image scans the built
image and the previous release's image from the same template. Because the notes are baked
into the image, that takes two steps, and the second reuses the first one's notes:
- uses: d2k-klin/taglore@v1 # 1. notes, baked into the image
with:
publish-github-release: false
output-dir: release-notes
- run: docker build -t ghcr.io/acme/app:${{ github.ref_name }} .
- uses: d2k-klin/taglore@v1 # 2. repository + image scan, then publish
with:
notes-from: release-notes/release.json
security-image: ghcr.io/acme/app:{version}
security-fail-on: critical
In Taglore's own CI, a demo app moves lodash from 4.17.15 to 4.17.21 and its base image from Alpine 3.14.0 to 3.20.3. The lockfiles alone report 3 findings fixed and none introduced. With the image, it is 127 fixed, 50 introduced and 64 still open. The 50 are honest: newer Alpine packages carry CVEs that were found after the old ones shipped. A net win, but not the clean sheet the lockfile number suggests, which is exactly why the image scan exists.
This is useful evidence for the EU Cyber Resilience Act, whose vulnerability reporting duties have applied since 11 September 2026, with the SBOM requirements following in December 2027. It is not CRA compliance on its own.
Fitting it into the pipeline you already have
Release Please decides the version and writes the developer changelog;
Taglore writes the user story. They run in the same job, and they have to: a tag created with
the default GITHUB_TOKEN doesn't start other workflows, so a separate
on: push: tags workflow never fires.
- id: release
uses: googleapis/release-please-action@v4
with:
release-type: node
- uses: actions/checkout@v6
if: ${{ steps.release.outputs.release_created }}
with:
fetch-depth: 0
- uses: d2k-klin/taglore@v1
if: ${{ steps.release.outputs.release_created }}
with:
to: ${{ steps.release.outputs.tag_name }}
release-body: prepend # user notes on top, Release Please's changelog below
Taglore's notes go into a marked block, so a re-run replaces that block instead of stacking a second copy, and the release title stays Release Please's.
Monorepos get one set of notes per app. paths: apps/web, packages/ui
limits the commits, the diff, the evidence and the security scan to those folders, and
tag-prefix: web-v keeps web-v tags apart from api-v tags
when Taglore picks the previous version. A vulnerable package in apps/api never
shows up in the web app's security notes. Paths that escape the repository, absolute or through
a symlink, are refused.
Locked-down organizations that can't use third-party Actions, or can't install
packages on every run, get taglore.mjs: the CLI as one file with every dependency
inside, attached to each release with checksums and a signed build provenance attestation.
sha256sum --check --ignore-missing SHA256SUMS
gh attestation verify taglore.mjs -R d2k-klin/taglore
node taglore.mjs generate --to v1.9.0 --dry-run
What doesn't hold up, and when I'd use it
- Big releases get a sample. With hundreds of changed files the model summarizes the most important part of the diff, and the report tells you what it skipped. Commit messages carry the most weight, so "wip" and "fix stuff" still produce weak notes, and Taglore will hand your commit messages straight back to you.
- Evidence is not accuracy. A cited commit proves a statement has a source, not that the sentence is right. Use the review step for releases that matter.
- Personal repos need a token. The zero-secrets Copilot path only works for organizations with the right policy. Everyone else creates a token, one more secret to rotate.
- A finding is not an exploit. The scanners say a vulnerable version is present, not that your code reaches it. Accepted risks go in a
.grype.yaml, which both scans respect. - The image gate runs after the build. A tripped
security-fail-onstops the release, but the image already exists. Push to a staging tag first. - Paths filter by commit, not by line. A commit that touches the web app and the API counts for both apps. Keep commits scoped if you want clean per-app notes.
- It isn't on the npm registry. By choice: the web components ship with the notes, and the CLI and the React package come from the GitHub Releases. It works, but a release URL is clumsier to type than a package name.
Use it if you ship a product to people who aren't developers, you already release by tag,
and you want the release note and the running version to never disagree. That last point is
the whole design. If you sell software in the EU, turn on security-scan as well:
an SBOM and a vulnerability diff per release cost one input, and you will be asked for both.
Skip it for libraries. Developers want the precise, boring changelog that git-cliff or Release Please already produce, and an LLM paraphrasing your API changes is a liability.
For our own apps, it's in. Tag, push, and the What's New dialog in the next image says what changed, once, in words a customer understands.