Number is the number of the project item. It is only valid for issues and pull requests.
()
| 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 { |
| 603 | switch p.Content.TypeName { |
| 604 | case "Issue": |
| 605 | return p.Content.Issue.Number |
| 606 | case "PullRequest": |
| 607 | return p.Content.PullRequest.Number |
| 608 | } |
| 609 | |
| 610 | return 0 |
| 611 | } |
| 612 | |
| 613 | // ID is the id of the ProjectItem. |
| 614 | func (p ProjectItem) ID() string { |
no outgoing calls
no test coverage detected