(repo ghrepo.Interface, number int)
| 63 | } |
| 64 | |
| 65 | func (c *artifactClient) IsPullRequest(repo ghrepo.Interface, number int) (bool, error) { |
| 66 | issue, err := issueShared.FindIssueOrPR(c.httpClient, repo, number, []string{"number"}) |
| 67 | if err != nil { |
| 68 | return false, err |
| 69 | } |
| 70 | return issue.IsPullRequest(), nil |
| 71 | } |
| 72 | |
| 73 | func (c *artifactClient) UploadTarget(repo ghrepo.Interface, number int) (*UploadTarget, error) { |
| 74 | issue, err := issueShared.FindIssueOrPR(c.httpClient, repo, number, []string{"number", "repository"}) |
nothing calls this directly
no test coverage detected