Look up a pull request's review status
Where a pull request's review runs stand: state, the latest completed review turn, and the latest Resolve run. Works for any pull request on the project, also ones the caller did not trigger. Pass the requested_at and head_sha the trigger returned, and the run_mode it was called with, to get request_outcome, which says when that request is done.
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/review_hog/reviews/pr_status/
- Auth: HTTP bearer
Path parameters
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
Query parameters
The head_sha the trigger returned. Lets a turn that was already running on that head when the request came in answer the request. Only used with requested_at.
GitHub pull request URL to look up, e.g. 'https://github.com/PostHog/posthog/pull/123'.
The requested_at the trigger returned. When set, the response carries request_outcome for that request.
The run_mode the trigger was called with (default 'review'). Only used with requested_at.
- review - Review
- review_only - Review only
- resolve_only - Resolve only
- flash - Standard
Response
The pull request's review status.
Changes
No recorded changes to this operation across all 1 revision of this API.