Browse Source

Exposes in API the Repo entity's Size property

Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
pull/4484/head
Guyzmo 8 years ago
parent
commit
1812b2cfd7
  1. 1
      models/repo.go

1
models/repo.go

@ -293,6 +293,7 @@ func (repo *Repository) APIFormat(permission *api.Permission) *api.Repository {
Description: repo.Description,
Private: repo.IsPrivate,
Empty: repo.IsBare,
Size: int(repo.Size/1024),
Fork: repo.IsFork,
Mirror: repo.IsMirror,
HTMLURL: repo.HTMLURL(),

Loading…
Cancel
Save