Skip to content

Commit e39ed0b

Browse files
authored
[API] return original URL of Repositories (#13885) (#13886)
1 parent cb24cbc commit e39ed0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ func (repo *Repository) innerAPIFormat(e Engine, mode AccessMode, isParent bool)
426426
HTMLURL: repo.HTMLURL(),
427427
SSHURL: cloneLink.SSH,
428428
CloneURL: cloneLink.HTTPS,
429+
OriginalURL: repo.SanitizedOriginalURL(),
429430
Website: repo.Website,
430431
Stars: repo.NumStars,
431432
Forks: repo.NumForks,

0 commit comments

Comments
 (0)