prow/github/client.go
func (c *Client) ListStatuses(org, repo, ref string) ([]Status, error) {
	c.log("ListStatuses", org, repo, ref)
	path := fmt.Sprintf("/repos/%s/%s/statuses/%s", org, repo, ref)
	var statuses []Status
	err := c.readPaginatedResults(
		path,
		acceptNone,
		func() interface{} {
			return &[]Status{}
		},
		func(obj interface{}) {
			statuses = append(statuses, *(obj.(*[]Status))...)
		},
	)
	return statuses, err
}
func (c *Client) ListStatuses(org, repo, ref string) ([]Status, error) {
	c.log("ListStatuses", org, repo, ref)
	path := fmt.Sprintf("/repos/%s/%s/statuses/%s", org, repo, ref)
	var statuses []Status
	err := c.readPaginatedResults(
		path,
		acceptNone,
		func() interface{} {
			return &[]Status{}
		},
		func(obj interface{}) {
			statuses = append(statuses, *(obj.(*[]Status))...)
		},
	)
	return statuses, err
}
// ListStatuses gets commit statuses for a given ref.
//
// See https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref