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

Function InitRepoHostname

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

Source from the content-addressed store, hash-verified

572}
573
574func InitRepoHostname(repo *Repository, hostname string) *Repository {
575 repo.hostname = hostname
576 if repo.Parent != nil {
577 repo.Parent.hostname = hostname
578 }
579 return repo
580}
581
582// RepositoryV3 is the repository result from GitHub API v3
583type 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