MCPcopy
hub / github.com/cli/cli / InitRepoHostname

Function InitRepoHostname

api/queries_repo.go:569–575  ·  view source on GitHub ↗
(repo *Repository, hostname string)

Source from the content-addressed store, hash-verified

567}
568
569func InitRepoHostname(repo *Repository, hostname string) *Repository {
570 repo.hostname = hostname
571 if repo.Parent != nil {
572 repo.Parent.hostname = hostname
573 }
574 return repo
575}
576
577// RepositoryV3 is the repository result from GitHub API v3
578type repositoryV3 struct {

Callers 11

repoCreateFunction · 0.92
stubPRFunction · 0.92
_stubPRFunction · 0.92
Test_generateCompareURLFunction · 0.92
Test_isSameRefFunction · 0.92
TestRunFunction · 0.92
FetchRepositoryFunction · 0.85
IssueRepoInfoFunction · 0.85
GitHubRepoFunction · 0.85
RepoNetworkFunction · 0.85
RepoFindForksFunction · 0.85

Calls

no outgoing calls

Tested by 5

stubPRFunction · 0.74
_stubPRFunction · 0.74
Test_generateCompareURLFunction · 0.74
Test_isSameRefFunction · 0.74
TestRunFunction · 0.74