MCPcopy Create free account
hub / github.com/github/gh-aw / extractWorkflowDispatchInputs

Function extractWorkflowDispatchInputs

pkg/workflow/dispatch_workflow_validation.go:193–196  ·  view source on GitHub ↗

extractWorkflowDispatchInputs parses a workflow file and extracts the workflow_dispatch inputs schema Returns a map of input definitions that can be used to generate MCP tool schemas

(workflowPath string)

Source from the content-addressed store, hash-verified

191// extractWorkflowDispatchInputs parses a workflow file and extracts the workflow_dispatch inputs schema
192// Returns a map of input definitions that can be used to generate MCP tool schemas
193func extractWorkflowDispatchInputs(workflowPath string) (map[string]any, error) {
194 dispatchWorkflowValidationLog.Printf("Extracting workflow_dispatch inputs from: %s", workflowPath)
195 return extractInputsFromYAML(workflowPath, "workflow_dispatch")
196}
197
198// containsWorkflowDispatch reports whether the given 'on:' section value includes
199// a workflow_dispatch trigger. It handles the three GitHub Actions forms:

Callers 2

generateDynamicToolsFunction · 0.85

Calls 2

extractInputsFromYAMLFunction · 0.85
PrintfMethod · 0.45

Tested by

no test coverage detected