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

Method Repo

pkg/cmd/project/shared/queries/queries.go:652–660  ·  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

650
651// Repo is the repository of the project item. It is only valid for issues and pull requests.
652func (p ProjectItem) Repo() string {
653 switch p.Content.TypeName {
654 case "Issue":
655 return p.Content.Issue.Repository.NameWithOwner
656 case "PullRequest":
657 return p.Content.PullRequest.Repository.NameWithOwner
658 }
659 return ""
660}
661
662// URL is the URL of the project item. Note the draft issues do not have URLs
663func (p ProjectItem) URL() string {

Callers 2

DetailedItemMethod · 0.95
printResultsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected