Add RSS feed of releases to the public server#377
Merged
Conversation
Serve an RSS 2.0 feed at GET /versions/rss listing published, ready-to-serve versions (the same set as /versions), newest first, with each changelog rendered to HTML as the item body. Absolute links use PUBLIC_URL when configured, otherwise the request's forwarded scheme and Host. Adds a feed autodiscovery <link> to the versions page. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pmhmhs4kBJukuvJxcX9FQv
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds an RSS 2.0 feed of releases to the public server, served at
GET /versions/rss.Each feed item corresponds to a published, ready-to-serve version — the same set the existing
/versionsJSON listing and homepage expose (published, not covered by a known-issue range), ordered newest first. The changelog markdown is rendered to HTML for the item body, mirroring the per-version HTML page.Details
GET /versions/rss, mounted as a plain (non-OpenAPI) route inversions::routes()alongside the other HTML/streaming routes, gated behind theuifeature (it reusesparse_markdown). Content typeapplication/rss+xml; charset=utf-8.rsscrate (added to the workspace and to public-server as an optional dep under theuifeature) rather than hand-rolling XML.Canopy <version>, link/guid pointing at the version's page,pubDatefromcreated_at(RFC 2822, UTC), and the rendered changelog as the description.PUBLIC_URLwhen configured, otherwise reconstructed from the request'sX-Forwarded-ProtoandHostheaders so local and test runs still emit well-formed links.<link rel="alternate" type="application/rss+xml">autodiscovery tag to the versions homepage.Tests
Adds two integration tests in
crates/public-server/tests/it/versions.rs:releases_rss_feed— asserts the content type, RSS structure, newest-first ordering, exclusion of drafts, and that changelog markdown is rendered.releases_rss_feed_excludes_known_issue_versions— asserts versions covered by a known-issue range are hidden, matching/versions.Both pass. The route is intentionally excluded from the OpenAPI spec (like the existing HTML/download routes), so no
openapi.jsonregeneration is needed.🤖 Generated with Claude Code
Generated by Claude Code