Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 5ec1a10

Browse files
lstahlmanunknwon
authored andcommitted
Extend the API to include more repository properties (#33)
Adds description, stars_count, forks_count, watchers_count and open_issues_count.
1 parent e8d96b6 commit 5ec1a10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

repo.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@ type Repository struct {
2323
ID int64 `json:"id"`
2424
Owner *User `json:"owner"`
2525
FullName string `json:"full_name"`
26+
Description string `json:"description"`
2627
Private bool `json:"private"`
2728
Fork bool `json:"fork"`
2829
HtmlUrl string `json:"html_url"`
2930
CloneUrl string `json:"clone_url"`
3031
SshUrl string `json:"ssh_url"`
32+
Stars int `json:"stars_count"`
33+
Forks int `json:"forks_count"`
34+
Watchers int `json:"watchers_count"`
35+
OpenIssues int `json:"open_issues_count"`
3136
Permissions Permission `json:"permissions"`
3237
}
3338

0 commit comments

Comments
 (0)