mirror of
https://github.com/go-gitea/gitea
synced 2024-11-19 18:39:34 +01:00
Add "mirror" field to repo API
This commit is contained in:
parent
d4a7040c7f
commit
946f3078d3
@ -281,6 +281,7 @@ func (repo *Repository) APIFormat(mode AccessMode) *api.Repository {
|
|||||||
Description: repo.Description,
|
Description: repo.Description,
|
||||||
Private: repo.IsPrivate,
|
Private: repo.IsPrivate,
|
||||||
Fork: repo.IsFork,
|
Fork: repo.IsFork,
|
||||||
|
Mirror: repo.IsMirror,
|
||||||
HTMLURL: repo.HTMLURL(),
|
HTMLURL: repo.HTMLURL(),
|
||||||
SSHURL: cloneLink.SSH,
|
SSHURL: cloneLink.SSH,
|
||||||
CloneURL: cloneLink.HTTPS,
|
CloneURL: cloneLink.HTTPS,
|
||||||
|
Loading…
Reference in New Issue
Block a user