NewArtifactClient returns an ArtifactClient that sends its requests through httpClient.
(httpClient *http.Client)
| 56 | // NewArtifactClient returns an ArtifactClient that sends its requests through |
| 57 | // httpClient. |
| 58 | func NewArtifactClient(httpClient *http.Client) ArtifactClient { |
| 59 | return &artifactClient{ |
| 60 | httpClient: httpClient, |
| 61 | apiClient: api.NewClientFromHTTP(httpClient), |
| 62 | } |
| 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"}) |