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

Method Body

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

Body is the body of the project item.

()

Source from the content-addressed store, hash-verified

620
621// Body is the body of the project item.
622func (p ProjectItem) Body() string {
623 switch p.Content.TypeName {
624 case "Issue":
625 return p.Content.Issue.Body
626 case "PullRequest":
627 return p.Content.PullRequest.Body
628 case "DraftIssue":
629 return p.Content.DraftIssue.Body
630 }
631 return ""
632}
633
634// Number is the number of the project item. It is only valid for issues and pull requests.
635func (p ProjectItem) Number() int {

Callers 2

DetailedItemMethod · 0.95
ExportDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected