summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-02-25 11:35:03 -0300
committerGitHub <noreply@github.com>2017-02-25 11:35:03 -0300
commitddb0287bf61f1c4271eef92f61e297101b708671 (patch)
treee157429782ec49d0cb966775fcf6ef2092d8b79d /models
parentc4a3d5148dc16e5c267773469c8ca011fcee8cfa (diff)
parentd7af8f96d7f340d83d8ff8d9d94189f92900aef7 (diff)
downloadgitea-ddb0287bf61f1c4271eef92f61e297101b708671.tar.gz
gitea-ddb0287bf61f1c4271eef92f61e297101b708671.zip
Merge pull request #970 from andreynering/api-repo-mirror
Add "mirror" field to repo API
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 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,