Title is the title of the project item.
()
| 574 | |
| 575 | // Title is the title of the project item. |
| 576 | func (p ProjectItem) Title() string { |
| 577 | switch p.Content.TypeName { |
| 578 | case "Issue": |
| 579 | return p.Content.Issue.Title |
| 580 | case "PullRequest": |
| 581 | return p.Content.PullRequest.Title |
| 582 | case "DraftIssue": |
| 583 | return p.Content.DraftIssue.Title |
| 584 | } |
| 585 | return "" |
| 586 | } |
| 587 | |
| 588 | // Body is the body of the project item. |
| 589 | func (p ProjectItem) Body() string { |
no outgoing calls
no test coverage detected