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

Function workflowIDFromRun

pkg/cli/logs_format_compact.go:34–42  ·  view source on GitHub ↗

workflowIDFromRun returns the workflow ID preferring the path-derived ID, falling back to a lowercased/hyphenated version of the display name.

(path, name string)

Source from the content-addressed store, hash-verified

32// workflowIDFromRun returns the workflow ID preferring the path-derived ID,
33// falling back to a lowercased/hyphenated version of the display name.
34func workflowIDFromRun(path, name string) string {
35 if id := workflowIDFromPath(path); id != "" {
36 return id
37 }
38 // Normalize display name to kebab-case ID
39 id := strings.ToLower(name)
40 id = strings.ReplaceAll(id, " ", "-")
41 return id
42}
43
44// renderLogsCompact outputs maximally information-dense output optimized for agentic consumption.
45// Designed for LLM context windows: minimal formatting, no decoration, structured but flat.

Callers 3

renderLogsCompactFunction · 0.85
renderLogsCompactVerboseFunction · 0.85

Calls 2

workflowIDFromPathFunction · 0.85
ToLowerMethod · 0.80

Tested by

no test coverage detected