mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
feat(api): return run_number
in workflow dispatch (#7286)
Some checks are pending
/ release (push) Waiting to run
testing / backend-checks (push) Has been skipped
testing / frontend-checks (push) Has been skipped
testing / test-unit (push) Has been skipped
testing / test-e2e (push) Has been skipped
testing / test-mysql (push) Has been skipped
testing / test-pgsql (push) Has been skipped
testing / test-sqlite (push) Has been skipped
testing / test-remote-cacher (redis) (push) Has been skipped
testing / test-remote-cacher (valkey) (push) Has been skipped
testing / security-check (push) Has been skipped
testing / test-remote-cacher (garnet) (push) Has been skipped
testing / test-remote-cacher (redict) (push) Has been skipped
Some checks are pending
/ release (push) Waiting to run
testing / backend-checks (push) Has been skipped
testing / frontend-checks (push) Has been skipped
testing / test-unit (push) Has been skipped
testing / test-e2e (push) Has been skipped
testing / test-mysql (push) Has been skipped
testing / test-pgsql (push) Has been skipped
testing / test-sqlite (push) Has been skipped
testing / test-remote-cacher (redis) (push) Has been skipped
testing / test-remote-cacher (valkey) (push) Has been skipped
testing / security-check (push) Has been skipped
testing / test-remote-cacher (garnet) (push) Has been skipped
testing / test-remote-cacher (redict) (push) Has been skipped
- 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:
parent
513319c1ec
commit
c531b8f020
4 changed files with 76 additions and 2 deletions
|
@ -22,6 +22,8 @@ type DispatchWorkflowOption struct {
|
|||
type DispatchWorkflowRun struct {
|
||||
// the workflow run id
|
||||
ID int64 `json:"id"`
|
||||
// a unique number for each run of a repository
|
||||
RunNumber int64 `json:"run_number"`
|
||||
// the jobs name
|
||||
Jobs []string `json:"jobs"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue