mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 05:09:46 +00:00
Fix pipeline cancel API endpoint and update Web and CLI clients (#1372)
Fixes #1369 Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
@@ -255,8 +255,8 @@ func GetPipelineConfig(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, configs)
|
||||
}
|
||||
|
||||
// DeletePipeline cancels a pipeline
|
||||
func DeletePipeline(c *gin.Context) {
|
||||
// CancelPipeline cancels a pipeline
|
||||
func CancelPipeline(c *gin.Context) {
|
||||
_store := store.FromContext(c)
|
||||
repo := session.Repo(c)
|
||||
num, _ := strconv.ParseInt(c.Params.ByName("number"), 10, 64)
|
||||
|
Reference in New Issue
Block a user