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:
parent
e8d96b66be
commit
5ec1a10830
1 changed files with 5 additions and 0 deletions
5
repo.go
5
repo.go
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue