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

Function extractDescription

pkg/cli/generate_action_metadata_command.go:194–201  ·  view source on GitHub ↗

extractDescription extracts description from JSDoc comment

(content string)

Source from the content-addressed store, hash-verified

192
193// extractDescription extracts description from JSDoc comment
194func extractDescription(content string) string {
195 // Look for JSDoc block comment at the start of main() or file
196 matches := jsdocDescriptionPattern.FindStringSubmatch(content)
197 if len(matches) > 1 {
198 return strings.TrimSpace(matches[1])
199 }
200 return ""
201}
202
203// generateHumanReadableName converts action name to human-readable format
204func generateHumanReadableName(actionName string) string {

Callers 2

extractActionMetadataFunction · 0.85
TestExtractDescriptionFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestExtractDescriptionFunction · 0.68