MCPcopy
hub / github.com/cli/cli / BuildRepoURL

Function BuildRepoURL

internal/skills/source/source.go:15–17  ·  view source on GitHub ↗

BuildRepoURL returns the canonical repository URL stored in skill metadata.

(host, owner, repo string)

Source from the content-addressed store, hash-verified

13
14// BuildRepoURL returns the canonical repository URL stored in skill metadata.
15func BuildRepoURL(host, owner, repo string) string {
16 return ghrepo.GenerateRepoURL(ghrepo.NewWithHost(owner, repo, host), "")
17}
18
19// ParseRepoURL parses a repository URL stored in skill metadata.
20func ParseRepoURL(raw string) (ghrepo.Interface, error) {

Callers 4

parseInstalledSkillFunction · 0.92
checkUpstreamProvenanceFunction · 0.92
InjectGitHubMetadataFunction · 0.92
TestBuildRepoURLFunction · 0.85

Calls 2

GenerateRepoURLFunction · 0.92
NewWithHostFunction · 0.92

Tested by 1

TestBuildRepoURLFunction · 0.68