prow/github/client.go
func (c *Client) TeamHasMember(teamID int, memberLogin string) (bool, error) {
	c.log("TeamHasMember", teamID, memberLogin)
	projectMaintainers, err := c.ListTeamMembers(teamID, RoleAll)
	if err != nil {
		return false, err
	}
	for _, person := range projectMaintainers {
		if NormLogin(person.Login) == NormLogin(memberLogin) {
			return true, nil
		}
	}
	return false, nil
}
func (c *Client) TeamHasMember(teamID int, memberLogin string) (bool, error) {
	c.log("TeamHasMember", teamID, memberLogin)
	projectMaintainers, err := c.ListTeamMembers(teamID, RoleAll)
	if err != nil {
		return false, err
	}
	for _, person := range projectMaintainers {
		if NormLogin(person.Login) == NormLogin(memberLogin) {
			return true, nil
		}
	}
	return false, nil
}
// TeamHasMember checks if a user belongs to a team