aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-02-18 14:11:15 -0200
committerAndrey Nering <andrey.nering@gmail.com>2017-02-25 10:04:22 -0300
commit946f3078d379b7ac0760b20fa2f2884c2cdeb802 (patch)
treeebcc8acdbb7c9e3d2c06ef2584e504e127161bbe
parentd4a7040c7f12a1fbf12bdc08483baf5838f1bfb9 (diff)
downloadgitea-946f3078d379b7ac0760b20fa2f2884c2cdeb802.tar.gz
gitea-946f3078d379b7ac0760b20fa2f2884c2cdeb802.zip
Add "mirror" field to repo API
-rw-r--r--models/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index c79c52d682..e50743109b 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -281,6 +281,7 @@ func (repo *Repository) APIFormat(mode AccessMode) *api.Repository {
Description: repo.Description,
Private: repo.IsPrivate,
Fork: repo.IsFork,
+ Mirror: repo.IsMirror,
HTMLURL: repo.HTMLURL(),
SSHURL: cloneLink.SSH,
CloneURL: cloneLink.HTTPS,