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
commit ddb0287bf6
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,