forgejo/models/actions
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
..
artifact.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
forgejo.go [CLI] implement forgejo-cli 2024-01-01 13:02:36 +01:00
forgejo_test.go [CLI] implement forgejo-cli 2024-01-01 13:02:36 +01:00
main_test.go
run.go [GITEA] allow viewing the latest Action Run on the web 2024-01-01 15:27:12 +01:00
run_job.go
run_job_list.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
run_list.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
runner.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
runner_list.go
runner_token.go
runner_token_test.go
schedule.go
schedule_list.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
schedule_spec.go
schedule_spec_list.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
status.go
task.go Fix incorrect run order of action jobs (#28367) 2023-12-06 22:10:05 +00:00
task_list.go Use db.Find instead of writing methods for every object (#28084) 2023-11-24 03:49:41 +00:00
task_output.go
task_step.go
tasks_version.go
utils.go
utils_test.go
variable.go Added instance-level variables (#28115) 2023-12-25 07:28:59 +00:00