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

Function resolveWorkflowSpecSHAForCache

pkg/parser/remote_fetch.go:404–414  ·  view source on GitHub ↗
(owner, repo, ref string, cache *ImportCache)

Source from the content-addressed store, hash-verified

402}
403
404func resolveWorkflowSpecSHAForCache(owner, repo, ref string, cache *ImportCache) string {
405 if cache == nil {
406 return ""
407 }
408 resolvedSHA, err := resolveRefToSHA(owner, repo, ref, "")
409 if err != nil {
410 remoteLog.Printf("Failed to resolve ref to SHA, will skip cache: %v", err)
411 return ""
412 }
413 return resolvedSHA
414}
415
416func writeDownloadedIncludeToTempFile(content []byte) (string, error) {
417 tempFile, err := os.CreateTemp("", "gh-aw-include-*.md")

Callers 1

Calls 2

resolveRefToSHAFunction · 0.85
PrintfMethod · 0.45

Tested by

no test coverage detected