MCPcopy Create free account
hub / github.com/driangle/taskmd / checkWorkflowValue

Method checkWorkflowValue

sdk/go/validator/validator.go:505–514  ·  view source on GitHub ↗

checkWorkflowValue validates the workflow config value.

(config *ConfigData, result *ValidationResult)

Source from the content-addressed store, hash-verified

503
504// checkWorkflowValue validates the workflow config value.
505func (v *Validator) checkWorkflowValue(config *ConfigData, result *ValidationResult) {
506 if config.Workflow == "" {
507 return
508 }
509 valid := map[string]bool{"solo": true, "pr-review": true}
510 if !valid[config.Workflow] {
511 result.AddIssue(LevelError, "", config.ConfigPath,
512 fmt.Sprintf("invalid workflow value: '%s' (valid values: solo, pr-review)", config.Workflow))
513 }
514}
515
516// ValidateTouchesAgainstScopes warns when tasks reference undefined scopes.
517// Skips validation if knownScopes is nil or empty.

Callers 1

ValidateConfigMethod · 0.95

Calls 1

AddIssueMethod · 0.80

Tested by

no test coverage detected