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

Method extractCommentMemoryConfig

pkg/workflow/comment_memory.go:18–23  ·  view source on GitHub ↗

extractCommentMemoryConfig extracts comment-memory configuration from tools section.

(toolsConfig *ToolsConfig)

Source from the content-addressed store, hash-verified

16
17// extractCommentMemoryConfig extracts comment-memory configuration from tools section.
18func (c *Compiler) extractCommentMemoryConfig(toolsConfig *ToolsConfig) *CommentMemoryConfig {
19 if toolsConfig == nil || toolsConfig.CommentMemory == nil {
20 return nil
21 }
22 return c.parseCommentMemoryConfigValue(toolsConfig.CommentMemory.Raw)
23}
24
25// parseCommentMemoryConfigValue handles comment-memory configuration values.
26func (c *Compiler) parseCommentMemoryConfigValue(rawConfig any) *CommentMemoryConfig {

Callers 1

Calls 1

Tested by

no test coverage detected