我想使用 Github API 查找由特定拉取请求触发的工作流程运行,但此信息不包含在GET /repos/{owner}/{repo}/pulls/{pull_number}.
GET /repos/{owner}/{repo}/pulls/{pull_number}
我还尝试通过搜索工作流运行列表来关联工作流运行和 pr,但对于由分叉 pr 触发的工作流运行,响应具有GET /repos/{owner}/{repo}/actions/runs/{run_id}空的“pull_requests”属性。
GET /repos/{owner}/{repo}/actions/runs/{run_id}
我想知道是否有人知道如何将拉取请求与相应的工作流程运行相关联?谢谢!
github github-api
github ×1
github-api ×1