diff options
author | FuXiaoHei <fuxiaohei@vip.qq.com> | 2024-02-18 18:33:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 10:33:50 +0000 |
commit | 67adc5c1dc3470dab96053c2e77351f3a3f8062b (patch) | |
tree | 51e10d6b875d2d8aee0211f4a68a3ae52996a059 /routers/web/web.go | |
parent | 7430eb9e7f04a2923cee1f144947cf5fcce39ef8 (diff) | |
download | gitea-67adc5c1dc3470dab96053c2e77351f3a3f8062b.tar.gz gitea-67adc5c1dc3470dab96053c2e77351f3a3f8062b.zip |
Artifact deletion in actions ui (#27172)
Add deletion link in runs view page.
Fix #26315

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.go | 1 |
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) |