Extend the API to include more repository properties (#33)

Adds description, stars_count, forks_count, watchers_count and
open_issues_count.
This commit is contained in:
lstahlman 2016-07-10 13:57:18 -07:00 committed by 无闻
parent e8d96b66be
commit 5ec1a10830

View file

@ -23,11 +23,16 @@ type Repository struct {
ID int64 `json:"id"` ID int64 `json:"id"`
Owner *User `json:"owner"` Owner *User `json:"owner"`
FullName string `json:"full_name"` FullName string `json:"full_name"`
Description string `json:"description"`
Private bool `json:"private"` Private bool `json:"private"`
Fork bool `json:"fork"` Fork bool `json:"fork"`
HtmlUrl string `json:"html_url"` HtmlUrl string `json:"html_url"`
CloneUrl string `json:"clone_url"` CloneUrl string `json:"clone_url"`
SshUrl string `json:"ssh_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"` Permissions Permission `json:"permissions"`
} }