MCPcopy
hub / github.com/cli/cli / URL

Method URL

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

628
629// URL is the URL of the project item. Note the draft issues do not have URLs
630func (p ProjectItem) URL() string {
631 switch p.Content.TypeName {
632 case "Issue":
633 return p.Content.Issue.URL
634 case "PullRequest":
635 return p.Content.PullRequest.URL
636 }
637 return ""
638}
639
640func (p ProjectItem) ExportData(_ []string) map[string]interface{} {
641 v := map[string]interface{}{

Callers 2

DetailedItemMethod · 0.95
ExportDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected