API endpoints
POST /api/analyze— analyze a PR URLGET /api/health— health checkGET /api/reports— recent saved reports (MongoDB)
SYSTEM OVERVIEW
Sentry turns a GitHub PR URL into a structured merge-readiness report by fetching the full PR context, building a deterministic prompt, and asking an LLM to respond with strict JSON.
POST /api/analyze.
success: true with report and metadata.
GET /api/reports.
POST /api/analyze — analyze a PR URLGET /api/health — health checkGET /api/reports — recent saved reports (MongoDB)lib/github.js — GitHub fetch + pagination + rate-limit errorslib/chunker.js — diff sizing/truncation strategylib/prompt-builder.js — deterministic prompt + strict schemalib/openrouter.js — LLM call + timeout/retrylib/report-formatter.js — parse + retry + envelopelib/report-store.js — MongoDB persistence