From 22b7a0a28acc9e04bfcec3ade782c9b2482b07bb Mon Sep 17 00:00:00 2001 From: Daniel Leavitt Date: Sat, 17 Aug 2013 18:04:55 -0700 Subject: [PATCH] add privacy add private, homepage and default_branch attrs to repository --- github/repos.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/github/repos.go b/github/repos.go index 78ac045..642eb02 100644 --- a/github/repos.go +++ b/github/repos.go @@ -21,15 +21,18 @@ type RepositoriesService struct { // Repository represents a GitHub repository. type Repository struct { - ID *int `json:"id,omitempty"` - Owner *User `json:"owner,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - CreatedAt *Timestamp `json:"created_at,omitempty"` - PushedAt *Timestamp `json:"pushed_at,omitempty"` - UpdatedAt *Timestamp `json:"updated_at,omitempty"` + ID *int `json:"id,omitempty"` + Owner *User `json:"owner,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Homepage *string `json:"homepage,omitempty"` + DefaultBranch *string `json:"default_branch,omitempty"` + CreatedAt *Timestamp `json:"created_at,omitempty"` + PushedAt *Timestamp `json:"pushed_at,omitempty"` + UpdatedAt *Timestamp `json:"updated_at,omitempty"` // Additional mutable fields when creating and editing a repository + Private *bool `json:"private"` HasIssues *bool `json:"has_issues"` HasWiki *bool `json:"has_wiki"` }