Skip to content

Commit d4f9cf8

Browse files
committed
Exposes in API the Repo entity's IsBare property as IsEmpty
Signed-off-by: Guyzmo <[email protected]>
1 parent a5f28a4 commit d4f9cf8

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
@@ -285,6 +285,7 @@ func (repo *Repository) APIFormat(mode AccessMode) *api.Repository {
285285
FullName: repo.FullName(),
286286
Description: repo.Description,
287287
Private: repo.IsPrivate,
288+
Empty: repo.IsBare,
288289
Fork: repo.IsFork,
289290
Mirror: repo.IsMirror,
290291
HTMLURL: repo.HTMLURL(),

0 commit comments

Comments
 (0)