/review and require an authenticated session (authMiddleware).
Endpoints
1. Get PR Review Details
GET /review/information/:prId
Retrieves the full AI review record and synchronized pull request metadata for a specific PR.
Path Parameters
Response (200 OK)
2. Overview Reviews List
GET /review/list
Returns the 3 most recent reviews formatted specifically for the dashboard overview, with pre-computed quality scores and finding counts.
Scoring Formula
- If
confidence.overallis present: usesoverall * 100(or directly if > 1). - If zero findings exist: returns
98. - Otherwise:
Math.max(50, Math.min(99, 100 - (critical * 15) - (warning * 5) - (suggestion * 2))).
Response (200 OK)
3. Re-trigger Review
POST /review/:prId
Manually triggers a new AI review run for an existing PR. Reads the stored GitHub PR payload (bodyBlob) from PostgreSQL and immediately pushes it into the sanitizedPrPayload BullMQ queue.
Path Parameters
cURL
Response (200 OK)
Error Responses
404 Not Found: Pull request record or stored GitHub webhook payload does not exist.500 Internal Server Error: Failed to enqueue the payload to Redis.