← 输入框|github.com|刷新
Skip to content

docs: align the README with the code and move contributor material to CONTRIBUTING.md - #495

Merged
dargmuesli merged 1 commit into
mainfrom
docs/readme-contributing
Nov 5, 2026
Merged

dargmuesli merged 1 commit into
mainfrom
docs/readme-contributing

Conversation

@dargmuesli

@dargmuesli dargmuesli commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

The README had drifted from the code in a few places, and about a third of it was contributor material. This PR is docs only.

README fixes

  • Snapshot coordinates: pointed at the current organization and branch (com.github.spotify-web-api-java:spotify-web-api-java:main-SNAPSHOT). The repository has no master branch anymore.
  • Coverage badge: now reads main instead of the non-existent develop branch.
  • Token snippet: fixed. SpotifyApi.setAccessToken/setRefreshToken return void, so spotifyApi.setAccessToken(…).setRefreshToken(…).build() didn't compile.
  • Requirements: Installation now states that the library needs Java 9 or later and is the JPMS module se.michaelthelin.spotify.
  • Async example: uses CompletableFuture, which is what executeAsync() returns.
  • Spotify links: updated to the current documentation paths (Web API overview, authorization concepts, dashboard, Android SDK).

What goes where

  • Support: the StackOverflow / "issues are for bugs" guidance is user-facing, so it moves from CONTRIBUTING.md ("Your Questions") into a new README section.
  • Code overview: moves from the README into CONTRIBUTING.md. Corrections on the way:
    • Paths are written as directories (src/main/java/se/michaelthelin/spotify/…).
    • Model objects are described as they work now: read reflectively by the shared Gson instance, with ModelObjects for JSON obtained elsewhere, rather than per-model JSON utility classes.
    • The fixtures paragraph, which contradicted CONTRIBUTING's rule of comparing fixtures against spec/openapi.yaml, is dropped in favour of a pointer to that rule.
  • Development setup: CONTRIBUTING.md gains this section (JDK 17+ and Maven to build, the build and test commands, the examples project and the docs check). The README's Contributions section is now a short pointer to CONTRIBUTING.md.

ci/check-docs.py passes. A follow-up for beta will describe the generated request classes, once this is merged into beta.

@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.23%. Comparing base (c234839) to head (599d8e7).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #495   +/-   ##
=========================================
  Coverage     47.23%   47.23%           
  Complexity      721      721           
=========================================
  Files           212      212           
  Lines          6195     6195           
  Branches        574      574           
=========================================
  Hits           2926     2926           
  Misses         2890     2890           
  Partials        379      379           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

… CONTRIBUTING.md

README:
- point the snapshot coordinates and the coverage badge at the current
  organization and main branch, which replaced master and develop
- fix the token snippet: SpotifyApi's setters return void, so they cannot
  be chained into build()
- state the Java 9 requirement and the module name under Installation
- update Spotify developer links to their current documentation paths
- add a Support section, moved from CONTRIBUTING.md's "Your Questions"

CONTRIBUTING.md:
- take over the code overview from the README, with corrected paths and a
  description of how model objects are read today instead of the per-model
  JSON utility classes
- add a development setup section with the build requirements and
  commands, which the README listed under Contributions
@dargmuesli
dargmuesli force-pushed the docs/readme-contributing branch from eb28318 to 599d8e7 Compare November 5, 2026 13:38
@dargmuesli
dargmuesli enabled auto-merge November 5, 2026 13:38
@dargmuesli
dargmuesli merged commit 1b8f389 into main Nov 5, 2026
11 checks passed
@dargmuesli
dargmuesli deleted the docs/readme-contributing branch November 5, 2026 13:39
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