engineering_analytics
engineering_analytics

Headline counts for the open-PR backlog: open PRs, distinct repos, stuck PRs (open, non-draft, non-bot, older than 7 days), and PRs with failing CI. The failing-CI count rests on the head-SHA join and can lag until late CI completions settle.

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

Request

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

repostring

'owner/name' repository to scope to when the selected source syncs several repositories (from the sources list). Defaults to the source's first repository.

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

open_prsinteger required

Count of open pull requests.

reposinteger required

Distinct repositories with at least one open pull request.

stuckinteger required

Open, non-draft, non-bot pull requests older than 7 days.

failing_ciinteger required

Open pull requests with at least one failing latest CI run. May lag until the workflow_run webhook settles late completions.

Changes

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