fixed action run stop api

This commit is contained in:
xxq250 2025-07-28 15:54:07 +08:00
parent 31c339fd1d
commit 6f0092b14c
1 changed files with 1 additions and 1 deletions

View File

@ -137,9 +137,9 @@ func Routers() *web.Route {
m.Post("/enable", reqAdmin(), actions.EnableWorkflowFile)
m.Post("/runs/{run}/jobs/{job}", context.ReferencesGitRepo(), bind(actions.ViewRequest{}), actions.ListJobs)
m.Post("/runs/{run}/jobs/{job}/rerun", reqRepoWriter(unit_model.TypeActions), actions.Rerun)
m.Post("/runs/{run}/jobs/{job}/cancel", reqRepoWriter(unit_model.TypeActions), actions.Cancel)
m.Get("/runs/{run}/jobs/{job}/logs", actions.Logs)
m.Post("/runs/{run}/rerun", reqRepoWriter(unit_model.TypeActions), actions.Rerun)
m.Post("/runs/{run}/cancel", reqRepoWriter(unit_model.TypeActions), actions.Cancel)
m.Post("/runs", context.ReferencesGitRepo(), reqRepoWriter(unit_model.TypeActions), actions.Run)
}, reqRepoReader(unit_model.TypeActions))
m.Post("/transfer", reqOwner(), bind(gitea_api.TransferRepoOption{}), repo.Transfer)