prow/github/client.go
func (c *Client) CreateReview(org, repo string, number int, r DraftReview) error {
	c.log("CreateReview", org, repo, number, r)
	_, err := c.request(&request{
		method:      http.MethodPost,
		path:        fmt.Sprintf("/repos/%s/%s/pulls/%d/reviews", org, repo, number),
		accept:      "application/vnd.github.black-cat-preview+json",
		requestBody: r,
		exitCodes:   []int{200},
	}, nil)
	return err
}
func (c *Client) CreateReview(org, repo string, number int, r DraftReview) error {
	c.log("CreateReview", org, repo, number, r)
	_, err := c.request(&request{
		method:      http.MethodPost,
		path:        fmt.Sprintf("/repos/%s/%s/pulls/%d/reviews", org, repo, number),
		accept:      "application/vnd.github.black-cat-preview+json",
		requestBody: r,
		exitCodes:   []int{200},
	}, nil)
	return err
}
func ( c * Client ) CreateReview ( org , repo string , number int , r DraftReview ) error { c . log ( " " , org , repo , number , r ) _ , err := c . request ( & request { method : http . MethodPost , path : fmt . Sprintf ( " " , org , repo , number ) , accept : " " , requestBody : r , exitCodes : [ ] int { 200 } , } , nil ) return err }
// CreateReview creates a review using the draft.
//
// https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review
CreateReview creates a review using the draft . https : // developer . github . com / v3 / pulls / reviews / #create - a - pull - request - review