aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/web.go
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@vip.qq.com>2024-02-18 18:33:50 +0800
committerGitHub <noreply@github.com>2024-02-18 10:33:50 +0000
commit67adc5c1dc3470dab96053c2e77351f3a3f8062b (patch)
tree51e10d6b875d2d8aee0211f4a68a3ae52996a059 /routers/web/web.go
parent7430eb9e7f04a2923cee1f144947cf5fcce39ef8 (diff)
downloadgitea-67adc5c1dc3470dab96053c2e77351f3a3f8062b.tar.gz
gitea-67adc5c1dc3470dab96053c2e77351f3a3f8062b.zip
Artifact deletion in actions ui (#27172)
Add deletion link in runs view page. Fix #26315 ![image](https://github.com/go-gitea/gitea/assets/2142787/aa65a4ab-f434-4deb-b953-21e63c212033) When click deletion button. It marks this artifact `need-delete`. This artifact would be deleted when actions cleanup cron task.
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 0528b20328..864164972e 100644
--- a/routers/web/web.go
+++ b/routers/web/web.go
@@ -1368,6 +1368,7 @@ func registerRoutes(m *web.Route) {
m.Post("/approve", reqRepoActionsWriter, actions.Approve)
m.Post("/artifacts", actions.ArtifactsView)
m.Get("/artifacts/{artifact_name}", actions.ArtifactsDownloadView)
+ m.Delete("/artifacts/{artifact_name}", actions.ArtifactsDeleteView)
m.Post("/rerun", reqRepoActionsWriter, actions.Rerun)
})
}, reqRepoActionsReader, actions.MustEnableActions)