]> source.dussan.org Git - gitea.git/commit
allow "latest" to be used in release vTag when downloading file (#26748)
authormerlleu <r.langdorph@gmail.com>
Wed, 6 Sep 2023 11:06:04 +0000 (13:06 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2023 11:06:04 +0000 (11:06 +0000)
commita7d9a70552410d797cefc87b177b33ca4a1a60c4
treefc052f59d2e9df8dd7e204e5356764f16366a23f
parent9b0743ae33e8342e00a7ad3a6ba8af81b4c7019e
allow "latest" to be used in release vTag when downloading file (#26748)

Hello,

In the discord I saw
[someone](https://discord.com/channels/322538954119184384/1069795723178160168/1145061200644800514)
complaining that you can't use the "latest" keyword as release tag to
download a specific file:
In his example:

https://www.uberwald.me/gitea/public/fvtt-ecryme/releases/latest/system.json

However the latest keyword works for the release page, so I think it's a
good thing to implement this on the release attachment download url too.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
routers/web/repo/repo.go