prow/github/client.go
func (c *Client) GetPullRequestPatch(org, repo string, number int) ([]byte, error) {
	c.log("GetPullRequestPatch", org, repo, number)
	_, patch, err := c.requestRaw(&request{
		accept:    "application/vnd.github.VERSION.patch",
		method:    http.MethodGet,
		path:      fmt.Sprintf("/repos/%s/%s/pulls/%d", org, repo, number),
		exitCodes: []int{200},
	})
	return patch, err
}
func (c *Client) GetPullRequestPatch(org, repo string, number int) ([]byte, error) {
	c.log("GetPullRequestPatch", org, repo, number)
	_, patch, err := c.requestRaw(&request{
		accept:    "application/vnd.github.VERSION.patch",
		method:    http.MethodGet,
		path:      fmt.Sprintf("/repos/%s/%s/pulls/%d", org, repo, number),
		exitCodes: []int{200},
	})
	return patch, err
}
// GetPullRequestPatch gets the patch version of a pull request.
//
// See https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests