Skip to content

Commit 04c2783

Browse files
guyzmounknwon
authored andcommitted
Exposes in API the Repo entity's Size and Isempty properties (gogs#64)
* 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 <[email protected]> * Added Parent property to the repo API Signed-off-by: Guyzmo <[email protected]>
1 parent 9447dde commit 04c2783

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

repo.go

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ type Repository struct {
2727
Description string `json:"description"`
2828
Private bool `json:"private"`
2929
Fork bool `json:"fork"`
30+
Parent *Repository `json:"parent"`
31+
Empty bool `json:"empty"`
32+
Size int `json:"size"`
3033
Mirror bool `json:"mirror"`
3134
HTMLURL string `json:"html_url"`
3235
SSHURL string `json:"ssh_url"`

0 commit comments

Comments
 (0)