MCPcopy Create free account
hub / github.com/cli/cli / remoteSkillFrontmatterForRepo

Function remoteSkillFrontmatterForRepo

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

Source from the content-addressed store, hash-verified

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

Callers 2

TestListRunFunction · 0.85
remoteSkillFrontmatterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected