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

Function parseBotsValue

pkg/workflow/role_checks.go:180–182  ·  view source on GitHub ↗

parseBotsValue parses a bots value from frontmatter (supports string, []any, []string)

(botsValue any, fieldName string)

Source from the content-addressed store, hash-verified

178
179// parseBotsValue parses a bots value from frontmatter (supports string, []any, []string)
180func parseBotsValue(botsValue any, fieldName string) []string {
181 return parseOptionalStringSliceField(botsValue, fieldName)
182}
183
184// parseOptionalStringSliceField parses string-list fields that accept either
185// a single string or an array. Empty strings are filtered out.

Callers 1

extractBotsMethod · 0.85

Calls 1

Tested by

no test coverage detected