Skip to content

Commit 9b1c433

Browse files
committed
Added BaseRepo property to the repo API as parent
Signed-off-by: Guyzmo <[email protected]>
1 parent 1812b2c commit 9b1c433

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
@@ -295,6 +295,7 @@ func (repo *Repository) APIFormat(permission *api.Permission) *api.Repository {
295295
Empty: repo.IsBare,
296296
Size: int(repo.Size/1024),
297297
Fork: repo.IsFork,
298+
Parent: repo.BaseRepo,
298299
Mirror: repo.IsMirror,
299300
HTMLURL: repo.HTMLURL(),
300301
SSHURL: cloneLink.SSH,

0 commit comments

Comments
 (0)