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. llm_spend carries the agent LLM token spend attributed to the PR by git branch, or null when no $ai_generation event matched.
Request
- Base URL: https://us.posthog.com
- URL: https://us.posthog.com/api/projects/{project_id}/engineering_analytics/pr_cost/
- 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
Pull request number to estimate cost for.
'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.
Response
Changes
No recorded changes to this operation across all 1 revision of this API.