MCPcopy Index your code
hub / github.com/cli/cli / QualifiedHeadRef

Method QualifiedHeadRef

pkg/cmd/pr/create/create.go:86–86  ·  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

84 // the same repository, we return the branch name only. If they are different repositories,
85 // we return the owner and branch name in the form <owner>:<branch>.
86 QualifiedHeadRef() string
87 // UnqualifiedHeadRef returns a head ref in the form of the branch name only.
88 UnqualifiedHeadRef() string
89 //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