Dev - #25
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds a new serverless API endpoint (api/release.js) that fetches the latest GitHub release with a fallback and caching headers, updates the homepage to dynamically display the fetched release info via a script, and adds a Vercel deployment ignore condition for non-main branches. ChangesLatest release feature
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Browser
participant Handler as api/release.js
participant GitHub as GitHub Releases API
Browser->>Handler: GET /api/release
Handler->>GitHub: HTTPS GET releases/latest
alt success within timeout
GitHub-->>Handler: JSON release data
Handler-->>Browser: 200 tagName, url, long cache headers
else error or timeout
Handler-->>Browser: fallback tagName, url, short cache headers
end
Browser->>Browser: update link text and href
Related Issues: None specified. Related PRs: None specified. Suggested labels: enhancement, api Suggested reviewers: blackdragoon26 🐰 A rabbit hops to fetch a tag, ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary by CodeRabbit
New Features
Bug Fixes
Chores