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

Function mutableBodyHash

pkg/cli/outcome_eval_update.go:265–268  ·  view source on GitHub ↗
(raw any)

Source from the content-addressed store, hash-verified

263}
264
265func mutableBodyHash(raw any) string {
266 sum := sha256.Sum256([]byte(normalizeMutableBody(raw)))
267 return hex.EncodeToString(sum[:])
268}
269
270func normalizeMutableBody(raw any) string {
271 body := strings.ReplaceAll(mutableString(raw), "\r\n", "\n")

Calls 1

normalizeMutableBodyFunction · 0.85