WorkflowDispatch api optionally return runid (#36706)

Implements
https://github.blog/changelog/2026-02-19-workflow-dispatch-api-now-returns-run-ids

---------

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
ChristopherHX
2026-03-01 20:58:16 +01:00
committed by GitHub
parent 553277b0be
commit bc9817b317
7 changed files with 110 additions and 18 deletions

View File

@@ -6031,11 +6031,20 @@
"schema": {
"$ref": "#/definitions/CreateActionWorkflowDispatch"
}
},
{
"type": "boolean",
"description": "Whether the response should include the workflow run ID and URLs.",
"name": "return_run_details",
"in": "query"
}
],
"responses": {
"200": {
"$ref": "#/responses/RunDetails"
},
"204": {
"description": "No Content"
"description": "No Content, if return_run_details is missing or false"
},
"400": {
"$ref": "#/responses/error"
@@ -28319,6 +28328,26 @@
"type": "string",
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
"RunDetails": {
"description": "RunDetails returns workflow_dispatch runid and url",
"type": "object",
"properties": {
"html_url": {
"type": "string",
"x-go-name": "HTMLURL"
},
"run_url": {
"type": "string",
"x-go-name": "RunURL"
},
"workflow_run_id": {
"type": "integer",
"format": "int64",
"x-go-name": "WorkflowRunID"
}
},
"x-go-package": "code.gitea.io/gitea/modules/structs"
},
"SearchResults": {
"description": "SearchResults results of a successful search",
"type": "object",
@@ -30192,6 +30221,12 @@
}
}
},
"RunDetails": {
"description": "RunDetails",
"schema": {
"$ref": "#/definitions/RunDetails"
}
},
"Runner": {
"description": "Runner",
"schema": {