npm install
npm run devnpm run buildThis will:
- Fetch GitHub PR data and save to
public/data/github-prs.json - Build the site
# Fetch PR data without building
npm run fetch:github
# Build without fetching (uses existing data)
npm run build:onlyFor higher rate limits (5000 req/hour vs 60 req/hour):
export GITHUB_TOKEN=your_github_token- Run
npm run fetch:githubto generate.github-cache.json - Edit
.github-cache.jsonand set"featured": truefor PRs you want to showcase - Run
npm run fetch:githubagain to updatepublic/data/github-prs.json
The script will:
- Cache all PR data in
.github-cache.json(gitignored) - Only fetch new/updated PRs on subsequent runs
- Preserve your
featuredflags - Handle rate limits automatically (waits when limit is hit)
- Fetch ALL PRs with details, no matter how many you have
/src/data/- Static data files/public/data/- Generated data (github-prs.json)/scripts/- Build-time scripts.github-cache.json- PR cache (gitignored, edit this to feature PRs)