provider engineering_analyticsengineering_analytics GET /api/projects/{project_id}/engineering_analytics/pr_cost/
@utdk/posthog /api/projects/{project_id}/engineering_analytics/pr_cost/
engineering_analytics_pr_cost
Estimated CI cost for a pull request, summed over the jobs of all its workflow runs. Billable self-hosted Linux runners only — provider-hosted (free GitHub-hosted) and non-Linux jobs are excluded. Every figure is zero/null with `jobs_available` false when the job-level source isn't synced yet.
pr_number query required
Pull request number to estimate cost for.
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
engineeringAnalyticsPrCost
GET/api/projects/{project_id}/engineering_analytics/pr_cost/
Estimated CI cost for a pull request, summed over the jobs of all its workflow runs. Billable self-hosted Linux runners only — provider-hosted (free GitHub-hosted) and non-Linux jobs are excluded. Every figure is zero/null with `jobs_available` false when the job-level source isn't synced yet.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

required

Pull request number to estimate cost for.

required

'owner/name' repository the pull request belongs to.

Connected GitHub data warehouse source to read from. Defaults to the oldest connected GitHub source when the team has more than one.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.engineeringAnalyticsPrCost()