Body is the body of the project item.
()
| 620 | |
| 621 | // Body is the body of the project item. |
| 622 | func (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. |
| 635 | func (p ProjectItem) Number() int { |
no outgoing calls
no test coverage detected