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

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,