Back to blog
·4 min read·Cell Webb

Not Every Repo Has Release Tags

KittyLog picks tag mode or a schedule by counting a repo's tags. Issue #1088 is what happened when that one API call lied during onboarding.

Look at any two repositories you care about and there is a decent chance they disagree about what a release is. One of them tags v2.1.0, writes notes, and treats the tag as a small ceremony. The other has shipped to production four hundred times and has never created a tag in its life. Both are healthy projects. Neither is doing releases wrong.

A changelog tool has to pick a rhythm for each repo, and the two rhythms are genuinely different. Tag-driven projects want a changelog entry per version: everything between v1.3.6 and v1.3.7 becomes one note with a version number on it. Continuous shippers have no version boundaries to hang notes on, so the honest unit is time: here is what changed this week. KittyLog supports both. Tag mode generates when a tag lands; scheduled mode generates daily, weekly, or monthly.

Forcing either rhythm on everyone fails in a predictable way. Ask a tag-less repo for tag-based changelogs and you get silence forever, because the trigger never fires. Ask a tagged repo for weekly changelogs and you get entries that slice releases in half, with the first part of v2.0 in one week's note and the rest in the next. So the connect wizard tries to guess: it counts the repo's tags, and if there are any it suggests tag mode, and if there are none it suggests a schedule. One GitHub API call, one recommendation. Reasonable.

The day the detection lied

Issue #1088 is what happens when that one API call has a bad moment.

The repro was clean. Take a repo that definitely has tags (the report used one with 13 of them, v1.0.0 through v1.3.7), disconnect it from KittyLog, and immediately reconnect it. The wizard cheerfully announced: "This repo doesn't have any git tags. Schedule-based generation is recommended." The tags had not gone anywhere. Switching to tag mode after connecting found all 13 immediately.

What actually happened, once we traced it, was not GitHub losing the tags. Right after a reconnect the tag-count request can hit a transient failure: an installation token still propagating, a rate limit, an ordinary network hiccup. The backend endpoint, on any of those, logged a warning and returned a count of zero, because failing the whole connect flow over a cosmetic recommendation seemed worse than a wrong default. The frontend then treated that zero as the truth about the repository. A temporary condition became a confident statement about your project's release habits, delivered at the exact moment you were forming a first impression of the product.

That last part is what made it worth fixing. Onboarding is where detection errors are most expensive, because the user has no history with you to weigh against the wrong claim. If the dashboard misreports something on day forty, you shrug and refresh. If the connect wizard tells you your tagged repo has no tags on minute one, you conclude the product cannot read your repository.

The fix is small, on purpose

PR #1105 did not add a sync pipeline or a cache. The hook that fetches the tag count now retries once: if the first attempt returns zero or throws, it waits 1.5 seconds and asks again. While it waits, the count stays null and the UI shows a "Checking for tags..." spinner instead of a verdict. A definitive 4xx (no access to the repo at all) skips the retry, since asking again will not change a 404.

The fix is a heuristic with a retry bolted on, nothing more. A second transient failure 1.5 seconds after the first will still produce a wrong recommendation. We judged that acceptable because of what the recommendation actually is, which brings me to the point I most want to make.

A default, not a commitment

The tag detection picks which option the wizard highlights. That is the entire scope of its authority. You can override it in the wizard itself, and you can change the generation mode any time afterward in the repo's settings; the original bug report even used that switch as part of its repro. A repo that starts on a weekly schedule and later adopts tags can move over when the tags show up.

I think this is the right amount of trust to place in automated detection generally. Use the signal to save the common case a decision. Do not let it lock a door. The failure in #1088 stung precisely because the UI phrased a guess as a fact ("this repo doesn't have any git tags"), and a guess that admits it might be wrong needs a cheap way to overrule it. Ours is a settings dropdown.

If KittyLog recommends the wrong rhythm for your repo, change it. That is what the setting is for.

Source records

  • Issue #1088, the connect-modal "no git tags" mis-detection on reconnect.
  • PR #1105 (merged April 26, 2026), the retry-once fix and the "Checking for tags..." state.
  • frontend/src/app/changelogs/hooks/useChangelogsPageState.ts, frontend/src/components/connect-repo-modal/ModeSelection.tsx, and the tag-count endpoint in api/routers/repositories/github_access.py (in core.py when the fix landed; a later router split moved it).
  • CLAUDE.md, the generation-modes defaults (tag mode if tags detected, scheduled if not).

Ready to automate your changelogs?

Try KittyLog free - no credit card required.

Get Started Free