Skip to content

[Fix] Say why the downloads badge counts the v0.1.1 draft - #449

Merged
juanmaguitar merged 2 commits into
trunkfrom
juanmaguitar/stats-v011
Sep 11, 2026
Merged

[Fix] Say why the downloads badge counts the v0.1.1 draft#449
juanmaguitar merged 2 commits into
trunkfrom
juanmaguitar/stats-v011

Conversation

@juanmaguitar

Copy link
Copy Markdown
Collaborator

#447 selects stable tags by the absence of a - in the tag rather than by GitHub's prerelease flag, and justified it by saying the flag is set on v0.1.1 by mistake. It is not.

That tag is titled "v0.1.1 draft", its body calls it experimental, and it was never published as a release: this project has shipped four, v0.1.0, v0.1.2, v1.0.0 and v1.0.1.

The real reason is the stronger one. All three assets under that tag are the v0.1.0 binaries, so their 42 downloads are downloads of the app as it then stood and belong to v0.1.0. Filtering on GitHub's flag would silently drop them, which is precisely why the flag is not used.

No behaviour changes and no number moves: the badge still reads 240, and the tag rule gives the right answer for all eight tags. What changes is that a reader who checks the claim now finds it true.

STATS.md also gains the per-release breakdown, because "four releases" beside a CSV listing five tags is the confusion this correction exists to prevent.

Claude-Session: https://claude.ai/code/session_0126Pv8GFR6dszndiaG58D4G

Why

What changes

How to test this

Starting state:

What must not have happened:

Risks and limitations

Related


Design decisions and alternatives considered
Review outcome (required — see AGENTS.md)
  • Review: completed / partial / not run — reviewer; reviewed head SHA / base SHA; evidence; outcome
  • Since review: none / <previous SHA> → <current SHA> checked; re-review outcome
Implementation notes
Screenshots or recording

#447 selects stable tags by the absence of a `-` in the tag rather than by
GitHub's `prerelease` flag, and justified it by saying the flag is set on
v0.1.1 by mistake. It is not.

That tag is titled "v0.1.1 draft", its body calls it experimental, and it was
never published as a release: this project has shipped four, v0.1.0, v0.1.2,
v1.0.0 and v1.0.1.

The real reason is the stronger one. All three assets under that tag are the
v0.1.0 binaries, so their 42 downloads are downloads of the app as it then
stood and belong to v0.1.0. Filtering on GitHub's flag would silently drop
them, which is precisely why the flag is not used.

No behaviour changes and no number moves: the badge still reads 240, and the
tag rule gives the right answer for all eight tags. What changes is that a
reader who checks the claim now finds it true.

STATS.md also gains the per-release breakdown, because "four releases" beside
a CSV listing five tags is the confusion this correction exists to prevent.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0126Pv8GFR6dszndiaG58D4G
@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: bbf2d64a-f0eb-4514-a9b7-a1181281ecdb

📥 Commits

Reviewing files that changed from the base of the PR and between 4110349 and 7ffcc7d.

📒 Files selected for processing (3)
  • STATS.md
  • scripts/download-total.cjs
  • tests/unit/download-total.test.cjs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@juanmaguitar
juanmaguitar merged commit f31e5df into trunk Sep 11, 2026
2 checks passed
@juanmaguitar
juanmaguitar deleted the juanmaguitar/stats-v011 branch September 11, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant