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

Method Repo

pkg/cmd/project/shared/queries/queries.go:619–627  ·  view source on GitHub ↗

Repo is the repository of the project item. It is only valid for issues and pull requests.

()

Source from the content-addressed store, hash-verified

617
618// Repo is the repository of the project item. It is only valid for issues and pull requests.
619func (p ProjectItem) Repo() string {
620 switch p.Content.TypeName {
621 case "Issue":
622 return p.Content.Issue.Repository.NameWithOwner
623 case "PullRequest":
624 return p.Content.PullRequest.Repository.NameWithOwner
625 }
626 return ""
627}
628
629// URL is the URL of the project item. Note the draft issues do not have URLs
630func (p ProjectItem) URL() string {

Callers 2

DetailedItemMethod · 0.95
printResultsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected