diff options
author | 6543 <24977596+6543@users.noreply.github.com> | 2019-11-29 16:14:24 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-29 23:14:24 +0800 |
commit | d7c13103534639023badb5e1af8e1ecb72b9c594 (patch) | |
tree | c47dea1a1d744f52f278aee6bff46621800d64c4 /models/repo.go | |
parent | e151674cfa4255938f974cfb050b5222db77dcf5 (diff) | |
download | gitea-d7c13103534639023badb5e1af8e1ecb72b9c594.tar.gz gitea-d7c13103534639023badb5e1af8e1ecb72b9c594.zip |
expose PR counter on Repo API (#9202)
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index 6c293da6f8..cbe1ccc4f6 100644 --- a/models/repo.go +++ b/models/repo.go @@ -368,6 +368,7 @@ func (repo *Repository) innerAPIFormat(e Engine, mode AccessMode, isParent bool) Forks: repo.NumForks, Watchers: repo.NumWatches, OpenIssues: repo.NumOpenIssues, + OpenPulls: repo.NumOpenPulls, DefaultBranch: repo.DefaultBranch, Created: repo.CreatedUnix.AsTime(), Updated: repo.UpdatedUnix.AsTime(), |