Repo is the repository of the project item. It is only valid for issues and pull requests.
()
| 650 | |
| 651 | // Repo is the repository of the project item. It is only valid for issues and pull requests. |
| 652 | func (p ProjectItem) Repo() string { |
| 653 | switch p.Content.TypeName { |
| 654 | case "Issue": |
| 655 | return p.Content.Issue.Repository.NameWithOwner |
| 656 | case "PullRequest": |
| 657 | return p.Content.PullRequest.Repository.NameWithOwner |
| 658 | } |
| 659 | return "" |
| 660 | } |
| 661 | |
| 662 | // URL is the URL of the project item. Note the draft issues do not have URLs |
| 663 | func (p ProjectItem) URL() string { |
no outgoing calls
no test coverage detected