Skip to main content
GET
Get a pull request and its review data
Use the ID from the collection. Request expand=review for the latest stored review. Add expand=functional_validation to include linked issue checklists, available with Enterprise.
gitar_reviewed: true means Gitar has completed at least one review on this PR, including reviews with zero findings. The expanded review includes its commit SHA and recorded risk assessment. Compare review.commit_sha with the current head SHA on the code host to check whether the review covers the latest revision. Older reviews can have a risk level without a reason. Functional validation requires the corresponding feature entitlement. Each checklist identifies the issue and diff revision assessed. Its active objectives describe what the change covers. A pending objective may be addressed in a later change.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Gitar PR ID from the collection

Query Parameters

expand
enum<string>[]

Related data to include. Repeat for both expansions.

Available options:
review,
functional_validation

Response

Pull request

findings_summary
object
required
first_seen_at
string<date-time>
required

When Gitar first tracked this PR.

gitar_reviewed
boolean
required

Gitar has completed and stored at least one review on this PR.

id
string<uuid>
required
repository
string
required
repository_id
string<uuid>
required
state
string
required
updated_at
string<date-time>
required
url
string
required
author
null | object
closed_at
string<date-time> | null
functional_validation
object[] | null

Omitted unless expanded. Includes the active objectives of visible linked issues.

merged_at
string<date-time> | null
number
integer<int32> | null
opened_at
string<date-time> | null

When the code host opened the PR, when recorded.

platform
string | null
review
null | object

Omitted unless expanded. Null when there is no stored review.