(apiURL, token string)
| 25 | } |
| 26 | |
| 27 | func newClient(apiURL, token string) *githubClient { |
| 28 | return &githubClient{ |
| 29 | apiURL: apiURL, |
| 30 | token: token, |
| 31 | client: &http.Client{}, |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func (g *githubClient) createComment(repo, pr, msg string) error { |
| 36 | body := map[string]string{ |