From 5ec1a1083059c3b267685eedb00a4922c6eafd17 Mon Sep 17 00:00:00 2001 From: lstahlman Date: Sun, 10 Jul 2016 13:57:18 -0700 Subject: [PATCH] Extend the API to include more repository properties (#33) Adds description, stars_count, forks_count, watchers_count and open_issues_count. --- repo.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repo.go b/repo.go index 14a5a0b..f58d3af 100644 --- a/repo.go +++ b/repo.go @@ -23,11 +23,16 @@ type Repository struct { ID int64 `json:"id"` Owner *User `json:"owner"` FullName string `json:"full_name"` + Description string `json:"description"` Private bool `json:"private"` Fork bool `json:"fork"` HtmlUrl string `json:"html_url"` CloneUrl string `json:"clone_url"` SshUrl string `json:"ssh_url"` + Stars int `json:"stars_count"` + Forks int `json:"forks_count"` + Watchers int `json:"watchers_count"` + OpenIssues int `json:"open_issues_count"` Permissions Permission `json:"permissions"` }