Title is the title of the project item.
()
| 607 | |
| 608 | // Title is the title of the project item. |
| 609 | func (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. |
| 622 | func (p ProjectItem) Body() string { |
no outgoing calls
no test coverage detected