Pull request info missing from repos/OWNER/REPO/actions/runs (when run was trigger by a PR)
#67891
Unanswered
bric3
asked this question in
Apps, API and Webhooks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
The REST API to get GHA runs does not fill in
pull_requestswhen a run was triggered by a pull request, i.e. the array is empty.E.g. this run triggered by a a pull request
The returned payload for the corresponding run (242) below, you can notice the fields
"event": "pull_request"and that"pull_requests": []is empty.{ "id": 6223317359, "name": "Java CI with Gradle", "node_id": "WFR_kwLOEufiyM8AAAABcvBJbw", "head_branch": "windows-failure", "head_sha": "0a1e93ee775f4311bf61aa78171890c1937c7c6d", "path": ".github/workflows/gradle.yml", "display_title": "Understand windows failure", "run_number": 242, "event": "pull_request", "status": "completed", "conclusion": "success", "workflow_id": 20103782, "check_suite_id": 16285471685, "check_suite_node_id": "CS_kwDOEufiyM8AAAADyrCTxQ", "url": "https://api.github.com/repos/bric3/jufmt/actions/runs/6223317359", "html_url": "https://github.com/bric3/jufmt/actions/runs/6223317359", "pull_requests": [], "created_at": "2023-09-18T13:35:21Z", "updated_at": "2023-09-18T13:42:56Z", ...I believe this is a bug in the API.
Beta Was this translation helpful? Give feedback.
All reactions