engineering_analytics
engineering_analytics

One merged pull request's friction as a multiple of the typical pull request, with the counts behind it: red CI by cause, re-runs that failed again, CI time per push, the wait for the first approval, merge-queue time and kickouts, and rework. Covers pull requests merged in the last 30 days.

get/api/projects/{project_id}/engineering_analytics/pull_request_friction/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/engineering_analytics/pull_request_friction/
  • Auth: HTTP bearer

Path parameters

project_idstring required

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

pr_numberinteger required

Pull request number to show.

repostring required

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

source_idstring uuid

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

Response

availableboolean required

False when the per-PR friction view does not exist yet: it needs a GitHub source with workflow runs, workflow jobs and pull requests synced.

window_daysinteger required

Pull requests merged in this many days before the view last refreshed.

Changes

No recorded changes to this operation across all 1 revision of this API.