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

Function ExtractWorkflowDescriptionFromFile

pkg/cli/packages.go:265–272  ·  view source on GitHub ↗

ExtractWorkflowDescriptionFromFile extracts the description field from a workflow file

(filePath string)

Source from the content-addressed store, hash-verified

263
264// ExtractWorkflowDescriptionFromFile extracts the description field from a workflow file
265func ExtractWorkflowDescriptionFromFile(filePath string) string {
266 content, err := os.ReadFile(filePath)
267 if err != nil {
268 return ""
269 }
270
271 return ExtractWorkflowDescription(string(content))
272}

Calls 1