MCPcopy
hub / github.com/cli/cli / Body

Method Body

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

Body is the body of the project item.

()

Source from the content-addressed store, hash-verified

587
588// Body is the body of the project item.
589func (p ProjectItem) Body() string {
590 switch p.Content.TypeName {
591 case "Issue":
592 return p.Content.Issue.Body
593 case "PullRequest":
594 return p.Content.PullRequest.Body
595 case "DraftIssue":
596 return p.Content.DraftIssue.Body
597 }
598 return ""
599}
600
601// Number is the number of the project item. It is only valid for issues and pull requests.
602func (p ProjectItem) Number() int {

Callers 2

DetailedItemMethod · 0.95
ExportDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected