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

Method QualifiedHeadRef

pkg/cmd/pr/create/create.go:147–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func (r pushableRefs) QualifiedHeadRef() string {
148 if ghrepo.IsSame(r.headRepo, r.baseRepo) {
149 return r.headBranchName
150 }
151 return fmt.Sprintf("%s:%s", r.headRepo.RepoOwner(), r.headBranchName)
152}
153
154func (r pushableRefs) UnqualifiedHeadRef() string {
155 return r.headBranchName

Callers

nothing calls this directly

Calls 2

IsSameFunction · 0.92
RepoOwnerMethod · 0.65

Tested by

no test coverage detected