Skip to main content
Returns code review counts and rates for a time range, plus a ten-week feedback trend. Every selected repository must be readable by the caller.

Authorization

Requires workspace Read and read access to the selected repositories. This fixed ten-week trend has no pagination. Results are live, not a completeness guarantee; zero counts can mean no matching recorded data rather than all activity having been processed. Summary rates default to zero when there is no denominator, while optional weekly rates are omitted.
string
required
Bearer <key>. See Authentication.

Path parameters

string
required
GITHUB_ORGANIZATION or GITHUB_USER.
string
required
Numeric GitHub ID of the organization or user.

Query parameters

Repeat a parameter to pass multiple values, e.g. repositoryIds=1&repositoryIds=2. Omit a list parameter to apply no filter.
string
required
Inclusive start (RFC 3339).
string
required
Inclusive end (RFC 3339). Must not be before startTime, and the range can be at most 366 days.
string[]
Up to 100 distinct repository IDs. Omit for all readable active repositories, which must also number 100 or fewer. Inactive or deleted repositories contribute nothing.
string[]
Up to 100 GitHub user IDs of pull request authors.
string[]
CORRECTNESS, IDIOM, TICKET_REQUIREMENTS, or CUSTOM. Does not apply to feedbackTrend.
string[]
OPEN, OPEN_DRAFT, CLOSED_MERGED, or CLOSED_NOT_MERGED. Matches the pull request’s current state. Does not apply to feedbackTrend.
string[]
POSITIVE or NEGATIVE. Filters review comments only, not reviewed pull request counts or feedbackTrend.
boolean
true for addressed comments, false for unaddressed comments. Omit for both.
string[]
REACTION (thumbs up or down) or CLASSIFIER (inferred from human replies). With one source selected, reviewedPullRequests counts distinct pull requests with matching comments.
string[]
Exact custom agent names, up to 100 of at most 256 characters each. Excludes standard reviews from reviewedPullRequests. Does not apply to feedbackTrend.
string
Case-insensitive substring match on comment text, up to 256 characters. Does not apply to reviewedPullRequests.

Response

string
Reviewed pull requests (int64 as string). Standard reviews plus custom agent reviews, so one pull request can count twice.
string
Review comments posted (int64 as string).
number
Addressed comments / posted comments, 0 to 1. Zero when there are no comments.
number
Negative comments / posted comments over the last 30 days of the range, 0 to 1.
number
Posted comments / reviewed pull requests. Zero when there are no reviewed pull requests.
object[]
Ten Monday-start UTC weeks ending with the week containing endTime, oldest first. Counts only correctness comments on merged pull requests.
Weekly rates are rounded to four decimals and omitted when there is no denominator, including weeks before startTime. An omitted rate means no data, not zero. Results reflect current feedback and pull request state, so past ranges can change.