MCPcopy
hub / github.com/cli/cli / NewWithHost

Function NewWithHost

internal/ghrepo/repo.go:26–32  ·  view source on GitHub ↗

NewWithHost is like New with an explicit host name

(owner, repo, hostname string)

Source from the content-addressed store, hash-verified

24
25// NewWithHost is like New with an explicit host name
26func NewWithHost(owner, repo, hostname string) Interface {
27 return &ghRepo{
28 owner: owner,
29 name: repo,
30 hostname: normalizeHostname(hostname),
31 }
32}
33
34// FullName serializes a GitHub repository into an "OWNER/REPO" string
35func FullName(r Interface) string {

Callers 15

Test_FilterByHostsFunction · 0.92
BaseRepoMethod · 0.92
ParseDiscussionArgFunction · 0.92
TestNewCmdCommentFunction · 0.92
Test_viewRunFunction · 0.92
linkRepoFunction · 0.92
unlinkRepoFunction · 0.92
tryParseIssueFromURLFunction · 0.92
TestNewCmdEditFunction · 0.92
cloneRunFunction · 0.92
createFromScratchFunction · 0.92

Calls 1

normalizeHostnameFunction · 0.85

Tested by 15

Test_FilterByHostsFunction · 0.74
TestNewCmdCommentFunction · 0.74
Test_viewRunFunction · 0.74
TestNewCmdEditFunction · 0.74
TestNewCmdEditFunction · 0.74
Test_editRunFunction · 0.74
Test_editRun_interactiveFunction · 0.74
TestParseURLFunction · 0.74