From 1bc362c7737e51014af7299e016444b654095ad9 Mon Sep 17 00:00:00 2001 From: Anshuman Bhartiya Date: Wed, 5 Oct 2016 15:48:44 -0700 Subject: [PATCH] added license_template to repo struct Closes #443. Change-Id: I7c30d4091b11216e0aa1189abe001ac2e7476e49 --- github/repos.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/github/repos.go b/github/repos.go index 2bcaacc..98e4ac5 100644 --- a/github/repos.go +++ b/github/repos.go @@ -51,11 +51,14 @@ type Repository struct { License *License `json:"license,omitempty"` // Additional mutable fields when creating and editing a repository - Private *bool `json:"private"` - HasIssues *bool `json:"has_issues"` - HasWiki *bool `json:"has_wiki"` - HasPages *bool `json:"has_pages"` - HasDownloads *bool `json:"has_downloads"` + Private *bool `json:"private"` + HasIssues *bool `json:"has_issues"` + HasWiki *bool `json:"has_wiki"` + HasPages *bool `json:"has_pages"` + HasDownloads *bool `json:"has_downloads"` + LicenseTemplate *string `json:"license_template,omitempty"` + GitignoreTemplate *string `json:"gitignore_template,omitempty"` + // Creating an organization repository. Required for non-owners. TeamID *int `json:"team_id"`