(owner, repo, ref string, cache *ImportCache)
| 402 | } |
| 403 | |
| 404 | func 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 | |
| 416 | func writeDownloadedIncludeToTempFile(content []byte) (string, error) { |
| 417 | tempFile, err := os.CreateTemp("", "gh-aw-include-*.md") |
no test coverage detected