 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- type FilteredAllError
- type Workflow
- func FindWorkflow(client *api.Client, repo ghrepo.Interface, workflowSelector string, ...) ([]Workflow, error)
- func GetWorkflows(client *api.Client, repo ghrepo.Interface, limit int) ([]Workflow, error)
- func ResolveWorkflow(io *iostreams.IOStreams, client *api.Client, repo ghrepo.Interface, ...) (*Workflow, error)
- func SelectWorkflow(workflows []Workflow, promptMsg string, states []WorkflowState) (*Workflow, error)
 
- type WorkflowState
- type WorkflowsPayload
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var AWorkflow = Workflow{ Name: "a workflow", ID: 123, Path: ".github/workflows/flow.yml", State: Active, }
      View Source
      
  
    var AWorkflowContent = `{"content":"bmFtZTogYSB3b3JrZmxvdwo="}`
    
      View Source
      
  
    var AnotherDisabledWorkflow = Workflow{ Name: "a disabled workflow", ID: 1213, Path: ".github/workflows/anotherDisabled.yml", State: DisabledManually, }
      View Source
      
  
    var AnotherWorkflow = Workflow{ Name: "another workflow", ID: 789, Path: ".github/workflows/another.yml", State: Active, }
      View Source
      
  
    var AnotherWorkflowContent = `{"content":"bmFtZTogYW5vdGhlciB3b3JrZmxvdwo="}`
    
      View Source
      
  
    var DisabledWorkflow = Workflow{ Name: "a disabled workflow", ID: 456, Path: ".github/workflows/disabled.yml", State: DisabledManually, }
      View Source
      
  
    var UniqueDisabledWorkflow = Workflow{ Name: "terrible workflow", ID: 1314, Path: ".github/workflows/terrible.yml", State: DisabledManually, }
      View Source
      
  
var YetAnotherWorkflow = Workflow{ Name: "another workflow", ID: 1011, Path: ".github/workflows/yetanother.yml", State: Active, }
Functions ¶
This section is empty.
Types ¶
type FilteredAllError ¶
type FilteredAllError struct {
	// contains filtered or unexported fields
}
    type Workflow ¶
type Workflow struct {
	Name  string
	ID    int
	Path  string
	State WorkflowState
}
    func FindWorkflow ¶
func GetWorkflows ¶
func ResolveWorkflow ¶
func SelectWorkflow ¶
func SelectWorkflow(workflows []Workflow, promptMsg string, states []WorkflowState) (*Workflow, error)
type WorkflowState ¶
type WorkflowState string
const ( Active WorkflowState = "active" DisabledManually WorkflowState = "disabled_manually" )
type WorkflowsPayload ¶
type WorkflowsPayload struct {
	Workflows []Workflow
}
     Click to show internal directories. 
   Click to hide internal directories.