summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2019-11-30 20:28:47 +0100
committertechknowlogick <techknowlogick@gitea.io>2019-11-30 14:28:47 -0500
commit7c6f2e27becb7ab43fe266d2882a0d80977c2ef7 (patch)
tree439fc52d09688996e7306e4ac17a467ffd2ea8c4 /models
parent61c59bd69584864ae6e8acb2590818d96c230bfb (diff)
downloadgitea-7c6f2e27becb7ab43fe266d2882a0d80977c2ef7.tar.gz
gitea-7c6f2e27becb7ab43fe266d2882a0d80977c2ef7.zip
Add release_counter to Repo API (#9214)
Diffstat (limited to 'models')
-rw-r--r--models/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index eec9065359..347c909579 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -368,6 +368,7 @@ func (repo *Repository) innerAPIFormat(e Engine, mode AccessMode, isParent bool)
Watchers: repo.NumWatches,
OpenIssues: repo.NumOpenIssues,
OpenPulls: repo.NumOpenPulls,
+ Releases: repo.NumReleases,
DefaultBranch: repo.DefaultBranch,
Created: repo.CreatedUnix.AsTime(),
Updated: repo.UpdatedUnix.AsTime(),