You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following new fields can be found in the WorkflowRun object when querying the /repos/{owner}/{repo}/actions/runs & /repos/{owner}/{repo}/actions/runs/{run_id} endpoints:
previous_attempt_url
run_attempt
run_started_at
They aren't shown in the example responses found in their API docs yet but you can see them from the API requests via cURL (from workflow runs back in 2020):
{
"openapi": "3.0.3",
"components": {
"schemas": {
"workflow-run": {
"title": "Workflow Run",
"description": "An invocation of a workflow",
"type": "object",
"properties": {
"run_attempt": {
"type": "integer",
"description": "Attempt number of the run, 1 for first attempt and higher if the workflow was re-run.",
"example": 1
},
"run_started_at": {
"type": "string",
"format": "date-time",
"description": "The start time of the latest run. Resets on re-run."
},
"previous_attempt_url": {
"nullable": true,
"description": "The URL to the previous attempted run of this workflow, if one exists.",
"type": "string",
"example": "https://api.github.com/repos/github/hello-world/actions/runs/5/attempts/3"
},
...
},
"required": [
"id",
"node_id",
"head_branch",
"run_number",
"event",
"status",
"conclusion",
"head_sha",
"workflow_id",
"url",
"html_url",
"created_at",
"updated_at",
"head_commit",
"head_repository",
"repository",
"jobs_url",
"logs_url",
"check_suite_url",
"cancel_url",
"rerun_url",
"artifacts_url",
"workflow_url",
"pull_requests"
]
}
}
}
}
The text was updated successfully, but these errors were encountered:
tohjustin
added a commit
to tohjustin/go-github
that referenced
this issue
Dec 23, 2021
The following new fields can be found in the
WorkflowRun
object when querying the/repos/{owner}/{repo}/actions/runs
&/repos/{owner}/{repo}/actions/runs/{run_id}
endpoints:previous_attempt_url
run_attempt
run_started_at
They aren't shown in the example responses found in their API docs yet but you can see them from the API requests via cURL (from workflow runs back in 2020):
And also the OpenAPI spec for api.github.com:
The text was updated successfully, but these errors were encountered: