Number is the number of the project item. It is only valid for issues and pull requests.
()
| 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 { |
| 636 | switch p.Content.TypeName { |
| 637 | case "Issue": |
| 638 | return p.Content.Issue.Number |
| 639 | case "PullRequest": |
| 640 | return p.Content.PullRequest.Number |
| 641 | } |
| 642 | |
| 643 | return 0 |
| 644 | } |
| 645 | |
| 646 | // ID is the id of the ProjectItem. |
| 647 | func (p ProjectItem) ID() string { |
no outgoing calls
no test coverage detected