1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

Merge pull request #970 from andreynering/api-repo-mirror

Add "mirror" field to repo API
This commit is contained in:
Andrey Nering
2017-02-25 11:35:03 -03:00
committed by GitHub
8 changed files with 102 additions and 4 deletions

View File

@@ -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,