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

Method Title

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

Title is the title of the project item.

()

Source from the content-addressed store, hash-verified

607
608// Title is the title of the project item.
609func (p ProjectItem) Title() string {
610 switch p.Content.TypeName {
611 case "Issue":
612 return p.Content.Issue.Title
613 case "PullRequest":
614 return p.Content.PullRequest.Title
615 case "DraftIssue":
616 return p.Content.DraftIssue.Title
617 }
618 return ""
619}
620
621// Body is the body of the project item.
622func (p ProjectItem) Body() string {

Callers 2

DetailedItemMethod · 0.95
ExportDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected