1
Fork 0

feat(api): return run_number in workflow dispatch (#7286)

- This is a follow up on #7193 and resolves #6312.
- The ID by itself is not very useful, so also return the index of the workflow run.

Co-authored-by: Klaus Fyhn <klausfyhn@gmail.com>
Co-authored-by: Klaus Fyhn <klfj@mir-robots.com>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7286
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: klausfyhn <klausfyhn@noreply.codeberg.org>
Co-committed-by: klausfyhn <klausfyhn@noreply.codeberg.org>
This commit is contained in:
klausfyhn 2025-03-25 21:22:32 +00:00 committed by Gusted
parent 513319c1ec
commit c531b8f020
4 changed files with 76 additions and 2 deletions

View file

@ -5414,6 +5414,9 @@
}
],
"responses": {
"201": {
"$ref": "#/responses/DispatchWorkflowRun"
},
"204": {
"$ref": "#/responses/empty"
},
@ -23193,6 +23196,12 @@
"type": "string"
},
"x-go-name": "Jobs"
},
"run_number": {
"description": "a unique number for each run of a repository",
"type": "integer",
"format": "int64",
"x-go-name": "RunNumber"
}
},
"x-go-package": "code.gitea.io/gitea/modules/structs"