The field display_title is missing from the WorkflowRun struct. It is part of the response body for various API endpoints that return an instance of a WorkflowRun.
The endpoint /repos/OWNER/REPO/actions/runs/RUN_ID has it shown in the docs:
{
"id": 30433642,
"name": "Build",
"node_id": "MDEyOldvcmtmbG93IFJ1bjI2OTI4OQ==",
"check_suite_id": 42,
"check_suite_node_id": "MDEwOkNoZWNrU3VpdGU0Mg==",
"head_branch": "main",
"head_sha": "acb5820ced9479c074f688cc328bf03f341a511d",
"path": ".github/workflows/build.yml@main",
"run_number": 562,
"event": "push",
"display_title": "Update README.md", <-------
"status": "queued",
"conclusion": null,
"workflow_id": 159038,
"url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642",
"html_url": "https://github.com/octo-org/octo-repo/actions/runs/30433642",
"pull_requests": [],
...
}
It isn't shown in the docs for the endpoint /repos/OWNER/REPO/actions/runs but it's present in the actual response body.
The field
display_titleis missing from theWorkflowRunstruct. It is part of the response body for various API endpoints that return an instance of aWorkflowRun.The endpoint
/repos/OWNER/REPO/actions/runs/RUN_IDhas it shown in the docs:{ "id": 30433642, "name": "Build", "node_id": "MDEyOldvcmtmbG93IFJ1bjI2OTI4OQ==", "check_suite_id": 42, "check_suite_node_id": "MDEwOkNoZWNrU3VpdGU0Mg==", "head_branch": "main", "head_sha": "acb5820ced9479c074f688cc328bf03f341a511d", "path": ".github/workflows/build.yml@main", "run_number": 562, "event": "push", "display_title": "Update README.md", <------- "status": "queued", "conclusion": null, "workflow_id": 159038, "url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642", "html_url": "https://github.com/octo-org/octo-repo/actions/runs/30433642", "pull_requests": [], ... }It isn't shown in the docs for the endpoint
/repos/OWNER/REPO/actions/runsbut it's present in the actual response body.