MCPcopy
hub / github.com/cli/cli / NewQualifiedHeadRefWithoutOwner

Function NewQualifiedHeadRefWithoutOwner

pkg/cmd/pr/shared/find_refs_resolution.go:39–44  ·  view source on GitHub ↗
(branchName string)

Source from the content-addressed store, hash-verified

37}
38
39func NewQualifiedHeadRefWithoutOwner(branchName string) QualifiedHeadRef {
40 return QualifiedHeadRef{
41 owner: o.None[string](),
42 branchName: branchName,
43 }
44}
45
46// ParseQualifiedHeadRef takes strings of the form <owner>:<branch> or <branch>
47// and returns a QualifiedHeadRef. If the form <owner>:<branch> is used,

Callers 5

Test_generateCompareURLFunction · 0.92
Test_isSameRefFunction · 0.92
NewCreateContextFunction · 0.92
ParseQualifiedHeadRefFunction · 0.85

Calls

no outgoing calls

Tested by 2

Test_generateCompareURLFunction · 0.74
Test_isSameRefFunction · 0.74