Add Zip URL for release list (#788)

Fix #780

Reviewed-on: https://gitea.com/gitea/tea/pulls/788
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Lunny Xiao
2025-08-11 18:43:34 +00:00
committed by techknowlogick
parent 4c00b8b571
commit 2ddb3bd4a1

View File

@ -14,7 +14,7 @@ func ReleasesList(releases []*gitea.Release, output string) {
"Title",
"Published At",
"Status",
"Tar URL",
"Tar/Zip URL",
)
for _, release := range releases {
@ -29,7 +29,7 @@ func ReleasesList(releases []*gitea.Release, output string) {
release.Title,
FormatTime(release.PublishedAt, isMachineReadable(output)),
status,
release.TarURL,
release.TarURL+"\n"+release.ZipURL,
)
}