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)
| 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 |
| 193 | func 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: |
no test coverage detected