Forgejo/routers
Gergely Nagy 9e5cce1afc
[GITEA] allow viewing the latest Action Run on the web
Similar to how some other parts of the web UI support a `/latest` path
to directly go to the latest of a certain thing, let the Actions web UI
do the same: `/{owner}/{repo}/actions/runs/latest` will redirect to the
latest run, if there's one available.

Fixes gitea#27991.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit f67ccef1dd)

Code cleanup in the actions.ViewLatest route handler

Based on feedback received after the feature was merged, use
`ctx.NotFound` and `ctx.ServerError`, and drop the use of the
unnecessary `ctx.Written()`.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit 74e42da563)
(cherry picked from commit f7535a1cef)
(cherry picked from commit 1a90cd37c3)
(cherry picked from commit d86d71340a)
2024-01-01 15:27:12 +01:00
..
api [GITEA] Make HTTPS schema default for Swagger 2024-01-01 15:27:12 +01:00
common Avoid cycle-redirecting user/login page (#28636) 2023-12-30 08:48:34 +00:00
install [GITEA] Add password length check on install page 2024-01-01 15:20:55 +01:00
private [CLI] implement forgejo-cli 2024-01-01 13:02:36 +01:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web [GITEA] allow viewing the latest Action Run on the web 2024-01-01 15:27:12 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2024-01-01 13:50:26 +01:00