engineering_analytics
engineering_analytics

Every author's friction over pull requests merged in the last 30 days, most first: red CI they did not cause, re-runs that failed again, CI waits, the wait for the first approval, merge-queue time and kickouts, and rework. The score is a multiple of the typical author and never counts how much or how fast someone ships. Bots are excluded, and authors need at least 3 merged pull requests.

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

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/engineering_analytics/author_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

github_teamstring

GitHub team slug: list only the team's members, through the team membership table. Ranks stay repository-wide.

repostring

'owner/name' repository, when the selected source syncs several.

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.

ranked_author_countinteger required

Authors with at least 3 merged pull requests, all ranked together. A team list keeps these repository-wide ranks.

github_teamstring nullable required

The team the list is filtered to, or null for every author.

has_membership_databoolean required

False when the team membership table isn't synced, so a team filter matches nobody.

Changes

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