GetRawContent fetches the raw content of a file from a GitHub repository.
(ctx context.Context, owner, repo, path string, opts *ContentOpts)
| 63 | |
| 64 | // GetRawContent fetches the raw content of a file from a GitHub repository. |
| 65 | func (c *Client) GetRawContent(ctx context.Context, owner, repo, path string, opts *ContentOpts) (*http.Response, error) { |
| 66 | url := c.URLFromOpts(opts, owner, repo, path) |
| 67 | req, err := c.newRequest(ctx, "GET", url, nil) |
| 68 | if err != nil { |
| 69 | return nil, err |
| 70 | } |
| 71 | |
| 72 | return c.client.Client().Do(req) |
| 73 | } |