You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(readme): add a GitHub downloads badge - #1121
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.
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.
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: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
write_stateput thewriting <path>context on the directory step too. On Windows, a path under a regular file reads as "not found", so the only error came fromensure_private_dirand did not namestate.yml. This madefailed_playlist_pin_writes_use_the_error_routefail on Windows. Linux CI did not see it.Testing
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