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

Method QualifiedHeadRef

pkg/cmd/pr/create/create.go:93–93  ·  view source on GitHub ↗

QualifiedHeadRef returns a stringified form of the head ref, varying depending on whether the head ref is in the same repository as the base ref. If they are the same repository, we return the branch name only. If they are different repositories, we return the owner and branch name in the form <owne

()

Source from the content-addressed store, hash-verified

91 // the same repository, we return the branch name only. If they are different repositories,
92 // we return the owner and branch name in the form <owner>:<branch>.
93 QualifiedHeadRef() string
94 // UnqualifiedHeadRef returns a head ref in the form of the branch name only.
95 UnqualifiedHeadRef() string
96 //BaseRef returns the base branch name.

Callers 6

findForRefsFunction · 0.65
isSameRefFunction · 0.65
createRunFunction · 0.65
submitPRFunction · 0.65
generateCompareURLFunction · 0.65
statusRunFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected