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

Function extractFrontmatterForImport

pkg/parser/import_bfs.go:360–365  ·  view source on GitHub ↗
(fullPath string, content []byte)

Source from the content-addressed store, hash-verified

358}
359
360func extractFrontmatterForImport(fullPath string, content []byte) (*FrontmatterResult, error) {
361 if strings.HasPrefix(fullPath, BuiltinPathPrefix) {
362 return ExtractFrontmatterFromBuiltinFile(fullPath, content)
363 }
364 return ExtractFrontmatterFromContent(string(content))
365}
366
367func enqueueNestedImports(frontmatter map[string]any, item importQueueItem, baseDir string, cache *ImportCache, workflowFilePath string, yamlContent string, state *importBFSState) error {
368 importsField, hasImports := frontmatter["imports"]

Callers 1

Tested by

no test coverage detected