mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	- 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>
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			764 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			764 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // 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"`
 | |
| 	// 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"`
 | |
| 	// a unique number for each run of a repository
 | |
| 	RunNumber int64 `json:"run_number"`
 | |
| 	// the jobs name
 | |
| 	Jobs []string `json:"jobs"`
 | |
| }
 |