Skip to content

Commit

Permalink
Exposes in API the Repo entity's Size and Isempty properties (#64)
Browse files Browse the repository at this point in the history
* Exposes in API the Repo entity's Size and Isempty properties

* Add new field "Empty" to Repository structure
* Fix Empty type to bool
* Add Size property to Repository structure

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>

* Added Parent property to the repo API

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
  • Loading branch information
guyzmo authored and unknwon committed May 31, 2017
1 parent 9447dde commit 04c2783
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ type Repository struct {
Description string `json:"description"`
Private bool `json:"private"`
Fork bool `json:"fork"`
Parent *Repository `json:"parent"`
Empty bool `json:"empty"`
Size int `json:"size"`
Mirror bool `json:"mirror"`
HTMLURL string `json:"html_url"`
SSHURL string `json:"ssh_url"`
Expand Down

0 comments on commit 04c2783

Please sign in to comment.