forgejo/routers/web/repo
Gergely Nagy 72c020298e
[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)
(cherry picked from commit 9e5cce1afc)
(cherry picked from commit 2013fb3fab)
(cherry picked from commit 88b9d21d11)
2024-01-22 18:13:41 +00:00
..
actions [GITEA] allow viewing the latest Action Run on the web 2024-01-22 18:13:41 +00:00
setting [SHARED] make confirmation clearer for dangerous actions 2024-01-22 13:41:21 +00:00
activity.go
attachment.go
blame.go
branch.go
cherry_pick.go
commit.go [GITEA] Detect file rename and show in history 2024-01-22 18:13:40 +00:00
compare.go
download.go
editor.go [GITEA] Allow user to select email for file operations in Web UI 2024-01-22 18:13:41 +00:00
editor_test.go
find.go
githttp.go
githttp_test.go
helper.go
helper_test.go
issue.go Add ability to see open and closed issues at the same time (#28757) 2024-01-15 15:07:22 +00:00
issue_content_history.go
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go Revert adding htmx until we finaly decide to add it (#28879) 2024-01-21 21:42:35 +08:00
main_test.go
middlewares.go
migrate.go
milestone.go Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
packages.go
patch.go
projects.go Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
projects_test.go
pull.go Retarget depending pulls when the parent branch is deleted (#28686) 2024-01-17 01:44:56 +01:00
pull_review.go
release.go [GITEA] Allow release creation on commit 2024-01-22 17:59:54 +00:00
release_test.go
render.go Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
repo.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
search.go
topic.go
treelist.go
view.go [GITEA] Add repo empty check for branch feed 2024-01-22 18:13:40 +00:00
view_test.go
wiki.go Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
wiki_test.go