From 934b2c39537d6718375170a029fc1d1df01024c5 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Wed, 11 Feb 2026 01:56:37 -0500 Subject: Add GitHub releases support Scrapes releases page HTML to display version tags, publish dates, and changelog content. Co-Authored-By: Claude Sonnet 4.5 --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index 4486dff..2f8efef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,6 +9,7 @@ import { getGitHubBlob, getGitHubCommits, getGitHubIssues, + getGitHubReleases, getGitHubRepo, getGitHubTree, GitHubHTTPError, @@ -73,6 +74,11 @@ app.get("/:owner/:repo/commits/:branch/:path{.*}?", async (c) => { return tryRender(c, "commits.eta", getGitHubCommits(owner, repo, branch, path)); }); +app.get("/:owner/:repo/releases", async (c) => { + const { owner, repo } = c.req.param(); + return tryRender(c, "releases.eta", getGitHubReleases(owner, repo)); +}); + app.all("*", async (c) => { const path = c.req.path; c.header("Referrer-Policy", "no-referrer"); -- cgit v1.3.1