From 1c314b0189f3622fea33d90460c4f5d2683b797b Mon Sep 17 00:00:00 2001 From: Matt Landis Date: Fri, 18 Jul 2014 08:31:19 -0400 Subject: [PATCH] Add TeamID to Repository for creating organization repos. This is required for non-owners to create organization repos on github. --- github/repos.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/github/repos.go b/github/repos.go index 5203f3e..89e0cc4 100644 --- a/github/repos.go +++ b/github/repos.go @@ -53,6 +53,8 @@ type Repository struct { HasIssues *bool `json:"has_issues"` HasWiki *bool `json:"has_wiki"` HasDownloads *bool `json:"has_downloads"` + // Creating an organization repository. Required for non-owners. + TeamID *int `json:"team_id"` // API URLs URL *string `json:"url,omitempty"`