Body is the body of the project item.
()
| 587 | |
| 588 | // Body is the body of the project item. |
| 589 | func (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. |
| 602 | func (p ProjectItem) Number() int { |
no outgoing calls
no test coverage detected