From 74c51d548bf5e1e698bfa18713308a263131c06a Mon Sep 17 00:00:00 2001 From: William Bailey Date: Thu, 4 Dec 2014 15:46:51 +0000 Subject: [PATCH] Add Organization to Team struct --- github/orgs_teams.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/github/orgs_teams.go b/github/orgs_teams.go index 6c1a6b5..0c0f7db 100644 --- a/github/orgs_teams.go +++ b/github/orgs_teams.go @@ -10,13 +10,14 @@ import "fmt" // Team represents a team within a GitHub organization. Teams are used to // manage access to an organization's repositories. type Team struct { - ID *int `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - URL *string `json:"url,omitempty"` - Slug *string `json:"slug,omitempty"` - Permission *string `json:"permission,omitempty"` - MembersCount *int `json:"members_count,omitempty"` - ReposCount *int `json:"repos_count,omitempty"` + ID *int `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + URL *string `json:"url,omitempty"` + Slug *string `json:"slug,omitempty"` + Permission *string `json:"permission,omitempty"` + MembersCount *int `json:"members_count,omitempty"` + ReposCount *int `json:"repos_count,omitempty"` + Organization *Organization `json:"organization,omitempty"` } func (t Team) String() string {