mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Merge pull request #2327 from jbrockopp/build_kill
allow repo admin to kill build
This commit is contained in:
commit
e60b76921f
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ func Load(mux *httptreemux.ContextMux, middleware ...gin.HandlerFunc) http.Handl
|
|||
repo.POST("/move", session.MustRepoAdmin(), server.MoveRepo)
|
||||
|
||||
repo.POST("/builds/:number", session.MustPush, server.PostBuild)
|
||||
repo.DELETE("/builds/:number", session.MustAdmin(), server.ZombieKill)
|
||||
repo.DELETE("/builds/:number", session.MustRepoAdmin(), server.ZombieKill)
|
||||
repo.POST("/builds/:number/approve", session.MustPush, server.PostApproval)
|
||||
repo.POST("/builds/:number/decline", session.MustPush, server.PostDecline)
|
||||
repo.DELETE("/builds/:number/:job", session.MustPush, server.DeleteBuild)
|
||||
|
|
Loading…
Reference in a new issue