2024-06-28 05:17:11 +00:00
|
|
|
// Copyright The Forgejo Authors.
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
// DispatchWorkflowOption options when dispatching a workflow
|
|
|
|
// swagger:model
|
|
|
|
type DispatchWorkflowOption struct {
|
|
|
|
// Git reference for the workflow
|
|
|
|
//
|
|
|
|
// required: true
|
|
|
|
Ref string `json:"ref"`
|
|
|
|
// Input keys and values configured in the workflow file.
|
|
|
|
Inputs map[string]string `json:"inputs"`
|
2025-03-14 16:01:15 +00:00
|
|
|
// Flag to return the run info
|
|
|
|
// default: false
|
|
|
|
ReturnRunInfo bool `json:"return_run_info"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// DispatchWorkflowRun represents a workflow run
|
|
|
|
// swagger:model
|
|
|
|
type DispatchWorkflowRun struct {
|
|
|
|
// the workflow run id
|
|
|
|
ID int64 `json:"id"`
|
2025-03-25 21:22:32 +00:00
|
|
|
// a unique number for each run of a repository
|
|
|
|
RunNumber int64 `json:"run_number"`
|
2025-03-14 16:01:15 +00:00
|
|
|
// the jobs name
|
|
|
|
Jobs []string `json:"jobs"`
|
2024-06-28 05:17:11 +00:00
|
|
|
}
|