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

Function generateHumanReadableName

pkg/cli/generate_action_metadata_command.go:204–213  ·  view source on GitHub ↗

generateHumanReadableName converts action name to human-readable format

(actionName string)

Source from the content-addressed store, hash-verified

202
203// generateHumanReadableName converts action name to human-readable format
204func generateHumanReadableName(actionName string) string {
205 // Replace underscores with spaces and capitalize words
206 words := strings.Split(actionName, "_")
207 for i, word := range words {
208 if len(word) > 0 {
209 words[i] = strings.ToUpper(word[:1]) + word[1:]
210 }
211 }
212 return strings.Join(words, " ")
213}
214
215// extractInputs extracts input parameters from core.getInput() calls
216func extractInputs(content string) []ActionInput {

Callers 2

extractActionMetadataFunction · 0.85

Calls

no outgoing calls

Tested by 1