Repo is the repository of the project item. It is only valid for issues and pull requests.
()
| 617 | |
| 618 | // Repo is the repository of the project item. It is only valid for issues and pull requests. |
| 619 | func (p ProjectItem) Repo() string { |
| 620 | switch p.Content.TypeName { |
| 621 | case "Issue": |
| 622 | return p.Content.Issue.Repository.NameWithOwner |
| 623 | case "PullRequest": |
| 624 | return p.Content.PullRequest.Repository.NameWithOwner |
| 625 | } |
| 626 | return "" |
| 627 | } |
| 628 | |
| 629 | // URL is the URL of the project item. Note the draft issues do not have URLs |
| 630 | func (p ProjectItem) URL() string { |
no outgoing calls
no test coverage detected