Skip to content

docs(readme): add a GitHub downloads badge - #1121

Merged
LargeModGames merged 2 commits into
mainfrom
docs/readme-downloads-badge
Nov 21, 2026
Merged

LargeModGames merged 2 commits into
mainfrom
docs/readme-downloads-badge

Conversation

@LargeModGames

@LargeModGames LargeModGames commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Adds a "GitHub downloads" badge to the README. It shows the total downloads of all release assets and links to the Releases page.
  • Makes write_state put the writing <path> context on the directory step too. On Windows, a path under a regular file reads as "not found", so the only error came from ensure_private_dir and did not name state.yml. This made failed_playlist_pin_writes_use_the_error_route fail on Windows. Linux CI did not see it.

Testing

  • cargo fmt --all -- --check
  • cargo clippy --no-default-features --features telemetry,tui -- -D warnings
  • cargo test --no-default-features --features telemetry,tui
test result: ok. 2021 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.65s

Additional notes

The badge counts GitHub release downloads only, not crates.io, AUR or Homebrew.


💬 Questions or want to chat with other contributors? Join the spotatui Discord.

Summary by CodeRabbit

  • Documentation
    • Added a badge linking to the project’s releases.
  • Bug Fixes
    • Improved error messages when saving state files, including failures while preparing parent directories.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The README adds a GitHub downloads badge linked to the releases page. The state write operation now applies the “writing <path>” error context to parent-directory preparation failures as well as file-writing failures.

Changes: Release Downloads Badge

Layer / File(s) Summary
Add releases badge
README.md
The README adds a GitHub downloads badge that links to the project’s releases page.

State Write Error Context

Layer / File(s) Summary
Apply context to state write failures
src/core/state.rs
write_state chains parent-directory preparation and atomic file writing into one result. The “writing <path>” error context now covers failures from either operation.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to 649b0

This adds a downloads badge to the README and makes state-file write errors name the file when its directory cannot be created. Production impact is minimal and nothing blocks merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title uses the conventional-commit prefix docs(readme) and an imperative subject. It names the README badge addition, which is the main change in the README. The title does not mention the src/cor…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title uses the conventional-commit prefix docs(readme) and an imperative subject. It names the README badge addition, which is the main change in the README. The title does not mention the src/core/state.rs change, which is a behavior fix in write_state, so it is only partially related to the full changeset. The title is accurate for the README part, and the fix is secondary to the title's focus.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between fcb679f and 649b0ea.

Files selected for processing: 2

  • README.md
  • src/core/state.rs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/core/state.rs 80.0% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@LargeModGames
LargeModGames merged commit 753f681 into main Nov 21, 2026
39 checks passed
@LargeModGames
LargeModGames deleted the docs/readme-downloads-badge branch November 21, 2026 19:03
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