From 979f81b58d1457908e86f66c090bebc2b35c8d4a Mon Sep 17 00:00:00 2001 From: chantra Date: Fri, 10 Mar 2023 14:22:21 -0800 Subject: [PATCH] [github] update API to support rerun-failed-jobs (#61) Cherry-picked the `rerun-failed-jobs` action from an up-to-date spec. I did not include the `enable_debug_logging` parameter has it was not currently present with the existing `re_run_workflow` endpoint. re-run on failed job doc: https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-failed-jobs-from-a-workflow-run Generated diff after `make github`: https://gist.github.com/chantra/c30751e00fe6034a4ace4ac73646afc6#file-gist-diff-L702 --- specs/github/api.github.com.json | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/specs/github/api.github.com.json b/specs/github/api.github.com.json index ca7b285c..66bc0e69 100644 --- a/specs/github/api.github.com.json +++ b/specs/github/api.github.com.json @@ -19505,6 +19505,52 @@ } } }, + "/repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs": { + "post": { + "summary": "Re-run failed jobs from a workflow run", + "description": "Re-run all of the failed jobs and their dependent jobs in a workflow run using the `id` of the workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint.", + "tags": [ + "actions" + ], + "operationId": "actions/re-run-workflow-failed-jobs", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#re-run-workflow-failed-jobs" + }, + "parameters": [ + { + "$ref": "#/components/parameters/owner" + }, + { + "$ref": "#/components/parameters/repo" + }, + { + "$ref": "#/components/parameters/run-id" + } + ], + "responses": { + "201": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + }, + "additionalProperties": false + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "actions", + "subcategory": "workflow-runs" + } + } + }, "/repos/{owner}/{repo}/actions/runs/{run_id}/timing": { "get": { "summary": "Get workflow run usage",