MCPcopy
hub / github.com/cli/cli / remoteSkillFrontmatterForRepo

Function remoteSkillFrontmatterForRepo

pkg/cmd/skills/list/list_test.go:519–535  ·  view source on GitHub ↗
(name, repoURL, sourcePath, ref, pinned string)

Source from the content-addressed store, hash-verified

517}
518
519func 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}

Callers 2

TestListRunFunction · 0.85
remoteSkillFrontmatterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected