prow/github/client.go
func (c *Client) ListTeamRepos(id int) ([]Repo, error) {
	c.log("ListTeamRepos", id)
	if c.fake {
		return nil, nil
	}
	path := fmt.Sprintf("/teams/%d/repos", id)
	var repos []Repo
	err := c.readPaginatedResultsWithValues(
		path,
		url.Values{
			"per_page": []string{"100"},
		},
		// This accept header enables the nested teams preview.
		// https://developer.github.com/changes/2017-08-30-preview-nested-teams/
		"application/vnd.github.hellcat-preview+json",
		func() interface{} {
			return &[]Repo{}
		},
		func(obj interface{}) {
			repos = append(repos, *(obj.(*[]Repo))...)
		},
	)
	if err != nil {
		return nil, err
	}
	return repos, nil
}
func (c *Client) ListTeamRepos(id int) ([]Repo, error) {
	c.log("ListTeamRepos", id)
	if c.fake {
		return nil, nil
	}
	path := fmt.Sprintf("/teams/%d/repos", id)
	var repos []Repo
	err := c.readPaginatedResultsWithValues(
		path,
		url.Values{
			"per_page": []string{"100"},
		},
		// This accept header enables the nested teams preview.
		// https://developer.github.com/changes/2017-08-30-preview-nested-teams/
		"application/vnd.github.hellcat-preview+json",
		func() interface{} {
			return &[]Repo{}
		},
		func(obj interface{}) {
			repos = append(repos, *(obj.(*[]Repo))...)
		},
	)
	if err != nil {
		return nil, err
	}
	return repos, nil
}
// ListTeamRepos gets a list of team repos for the given team id
//
// https://developer.github.com/v3/teams/#list-team-repos