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

Method URL

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

URL is the URL of the project item. Note the draft issues do not have URLs

()

Source from the content-addressed store, hash-verified

661
662// URL is the URL of the project item. Note the draft issues do not have URLs
663func (p ProjectItem) URL() string {
664 switch p.Content.TypeName {
665 case "Issue":
666 return p.Content.Issue.URL
667 case "PullRequest":
668 return p.Content.PullRequest.URL
669 }
670 return ""
671}
672
673func (p ProjectItem) ExportData(_ []string) map[string]any {
674 v := map[string]any{

Callers 2

DetailedItemMethod · 0.95
ExportDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected