Review Timeline
Analytics
Review Timeline
Get daily review counts and completion rates over time
GET
Review Timeline
Overview
Retrieve daily review statistics for the specified time period, including total reviews, completed reviews, and failed reviews. Data is deduplicated by unique PR per day to provide accurate daily metrics.Authentication
Requires a valid JWT token in theAuthorization header:
Query Parameters
integer
default:"30"
Number of days to include in the timeline (7-90)
Response
Returns an array of daily statistics, ordered chronologically.array
Array of daily review statistics
string
Date in ISO format (YYYY-MM-DD)
integer
Total number of unique PRs reviewed on this day
integer
Number of reviews that completed successfully
integer
Number of reviews that failed
Example Request
Example Response
Deduplication Logic
For each day, if multiple events exist for the same PR (repo + PR number), only the event with the highest priority status is counted:- completed (highest priority)
- failed
- processing
- pending (lowest priority)
Use Cases
Activity Chart
Success Rate Trend
Weekly Aggregation
Detect Anomalies
Compare Periods
Notes
- All days in the specified range are included, even if no reviews occurred (total = 0)
- The timeline always starts from
(current_date - days + 1)to ensure consistent range - Data is ordered chronologically from oldest to newest
- Failed reviews typically indicate webhook processing errors or AI service failures
- Reviews in
processingorpendingstate are counted intotalbut not incompletedorfailed