provider engineering_analyticsengineering_analytics GET
/api/projects/{project_id}/engineering_analytics/pr_lifecycle/ @utdk/posthog
/api/projects/{project_id}/engineering_analytics/pr_lifecycle/ engineering_analytics_pr_lifecycle
The timeline of a single pull request: header plus ordered events (opened, CI started/finished, merged or closed). Use this to answer 'where is this PR stuck and what happened to it'. This is a partial view: review and comment events are not yet available.
- pr_number query required
- Pull request number to inspect.
- integer
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
- repo query required
- 'owner/name' repository the pull request belongs to.
- string
- source_id query
- Connected GitHub data warehouse source to read from. Defaults to the oldest connected GitHub source when the team has more than one.
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.engineeringAnalyticsPrLifecycle()