aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/web.go
diff options
context:
space:
mode:
authorVitaliy Filippov <vitalif@mail.ru>2023-06-29 05:58:56 +0300
committerGitHub <noreply@github.com>2023-06-29 10:58:56 +0800
commitf0b773e0ced9110f34326398e5b6c55ad6e25201 (patch)
tree6780cd1292474dbd7ecd4667430acdb299f1d80d /routers/web/web.go
parentb08647f0b9d73db0f0c23dfddadad2a245cb198e (diff)
downloadgitea-f0b773e0ced9110f34326398e5b6c55ad6e25201.tar.gz
gitea-f0b773e0ced9110f34326398e5b6c55ad6e25201.zip
Support downloading raw task logs (#24451)
Hi! This pull request adds support for downloading raw task logs for Gitea Actions, similar to Github Actions It looks like the following: ![image](https://user-images.githubusercontent.com/945339/235376746-405d5019-710b-468b-8113-9e82eab8e752.png)
Diffstat (limited to 'routers/web/web.go')
-rw-r--r--routers/web/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/web.go b/routers/web/web.go
index 26ad2d54c3..a5465eb041 100644
--- a/routers/web/web.go
+++ b/routers/web/web.go
@@ -1207,6 +1207,7 @@ func registerRoutes(m *web.Route) {
Get(actions.View).
Post(web.Bind(actions.ViewRequest{}), actions.ViewPost)
m.Post("/rerun", reqRepoActionsWriter, actions.RerunOne)
+ m.Get("/logs", actions.Logs)
})
m.Post("/cancel", reqRepoActionsWriter, actions.Cancel)
m.Post("/approve", reqRepoActionsWriter, actions.Approve)