mirror of
1
Fork 0

issue #12450: return original URL in `original_url` JSON field (#13885)

Co-authored-by: Gitea <gitea@fake.local>
This commit is contained in:
Eric Belhomme 2020-12-07 13:07:48 +01:00 committed by GitHub
parent f74a094fd5
commit 6ddf881245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ func innerToRepo(repo *models.Repository, mode models.AccessMode, isParent bool)
HTMLURL: repo.HTMLURL(), HTMLURL: repo.HTMLURL(),
SSHURL: cloneLink.SSH, SSHURL: cloneLink.SSH,
CloneURL: cloneLink.HTTPS, CloneURL: cloneLink.HTTPS,
OriginalURL: repo.SanitizedOriginalURL(),
Website: repo.Website, Website: repo.Website,
Stars: repo.NumStars, Stars: repo.NumStars,
Forks: repo.NumForks, Forks: repo.NumForks,