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

Function normalizeWorkflowDependency

pkg/cli/status_command.go:418–427  ·  view source on GitHub ↗
(dependency string)

Source from the content-addressed store, hash-verified

416}
417
418func normalizeWorkflowDependency(dependency string) string {
419 dependency = strings.TrimSpace(dependency)
420 if dependency == "" {
421 return ""
422 }
423 if path, _, ok := strings.Cut(dependency, "#"); ok {
424 return strings.TrimSpace(path)
425 }
426 return dependency
427}
428
429func renderWorkflowDependencyTree(statuses []WorkflowStatus) string {
430 root := tree.Root("Workflow Dependencies")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected