(name, repoURL, sourcePath, ref, pinned string)
| 517 | } |
| 518 | |
| 519 | func remoteSkillFrontmatterForRepo(name, repoURL, sourcePath, ref, pinned string) string { |
| 520 | pinnedLine := "" |
| 521 | if pinned != "" { |
| 522 | pinnedLine = fmt.Sprintf(" github-pinned: %s\n", pinned) |
| 523 | } |
| 524 | return fmt.Sprintf(heredoc.Doc(` |
| 525 | --- |
| 526 | name: %s |
| 527 | metadata: |
| 528 | github-repo: %s |
| 529 | github-ref: %s |
| 530 | github-tree-sha: abc123 |
| 531 | github-path: %s |
| 532 | %s--- |
| 533 | Body |
| 534 | `), name, repoURL, ref, sourcePath, pinnedLine) |
| 535 | } |
no outgoing calls
no test coverage detected