MCPcopy
hub / github.com/cli/cli / HeadLabel

Method HeadLabel

api/queries_pr.go:302–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

300}
301
302func (pr PullRequest) HeadLabel() string {
303 if pr.IsCrossRepository {
304 return fmt.Sprintf("%s:%s", pr.HeadRepositoryOwner.Login, pr.HeadRefName)
305 }
306 return pr.HeadRefName
307}
308
309func (pr PullRequest) Link() string {
310 return pr.URL

Callers 5

ResolveMethod · 0.80
listRunFunction · 0.80
findForRefsFunction · 0.80
pullRequestStatusFunction · 0.80
printPrsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected