mirror of
https://github.com/warmbly/warmbly.git
synced 2026-10-30 08:15:41 +00:00
Replace the hand-maintained changelog entries with a build-time fetch of the real merged pull requests on warmbly/warmbly. PRs (not commits) are the unit, so each entry is one shippable change rather than one of many commits. src/lib/changelog.ts fetches closed PRs into main from the GitHub REST API, keeps the merged ones, strips conventional-commit prefixes, derives the tag from the type, and pulls the body from the PR's Summary bullets. Marketing-site and pure-infra PRs are filtered by type, title pattern, and a skip-changelog label, all configurable in one place. Results are cached per build and fall back to a curated list if the API is unreachable, so the build never breaks. The changelog page and the homepage ChangelogShowcase both consume this data and link each entry to its pull request. Set GITHUB_TOKEN at build to lift the unauthenticated rate limit; it is optional for the public repo.