provider engineering_analyticsengineering_analytics GET /api/projects/{project_id}/engineering_analytics/workflow_run_activity/
@utdk/posthog /api/projects/{project_id}/engineering_analytics/workflow_run_activity/
engineering_analytics_workflow_run_activity
Compact per-run points for a single workflow over a window (date_from default -30d), newest first, for the run-activity chart: each run's start time, duration, conclusion, branch, and attributed PR. Optionally scope to a single git branch via `branch`, matching workflow_runs. Leaner and higher-capped than workflow_runs so the chart spans the full window even on busy workflows; `truncated` is true when the cap is hit, so the chart covers only the most recent runs.
branch query
Optional exact git branch (head_branch) to scope results to, e.g. 'main'. Omit or leave blank to aggregate across all branches.
string
date_from query
Window start: relative ('-30d', '-8w') or ISO8601. Defaults to -30d.
string
date_to query
Window end: relative or ISO8601. Defaults to now.
string
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 workflow 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
workflow_name query required
Workflow name to load run activity for.
string

Try it

Authentication
Configure credentials for PostHog API
engineeringAnalyticsWorkflowRunActivity
GET/api/projects/{project_id}/engineering_analytics/workflow_run_activity/
Compact per-run points for a single workflow over a window (date_from default -30d), newest first, for the run-activity chart: each run's start time, duration, conclusion, branch, and attributed PR. Optionally scope to a single git branch via `branch`, matching workflow_runs. Leaner and higher-capped than workflow_runs so the chart spans the full window even on busy workflows; `truncated` is true when the cap is hit, so the chart covers only the most recent runs.

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/.

Optional exact git branch (head_branch) to scope results to, e.g. 'main'. Omit or leave blank to aggregate across all branches.

Window start: relative ('-30d', '-8w') or ISO8601. Defaults to -30d.

Window end: relative or ISO8601. Defaults to now.

required

'owner/name' repository the workflow belongs to.

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

required

Workflow name to load run activity for.

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.engineeringAnalyticsWorkflowRunActivity()