provider engineering_analyticsengineering_analytics GET
/api/projects/{project_id}/engineering_analytics/pr_runs/ @utdk/posthog
/api/projects/{project_id}/engineering_analytics/pr_runs/ engineering_analytics_pr_runs
Every workflow run attributed to a pull request, across all its commits (grouped by head SHA client-side), newest first. Run-level only.
- pr_number query required
- Pull request number whose runs to list.
- 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.engineeringAnalyticsPrRuns()