Skip to content

Commit 1812b2c

Browse files
committed
Exposes in API the Repo entity's Size property
Signed-off-by: Guyzmo <[email protected]>
1 parent cf9fbc5 commit 1812b2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ func (repo *Repository) APIFormat(permission *api.Permission) *api.Repository {
293293
Description: repo.Description,
294294
Private: repo.IsPrivate,
295295
Empty: repo.IsBare,
296+
Size: int(repo.Size/1024),
296297
Fork: repo.IsFork,
297298
Mirror: repo.IsMirror,
298299
HTMLURL: repo.HTMLURL(),

0 commit comments

Comments
 (0)