mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-17 17:10:56 +00:00
Pipeline errors must be an array (#3276)
This PR addresses ``json: cannot unmarshal array into Go struct field Pipeline.errors of type woodpecker.PipelineError`` when executing ``woodpecker-cli pipeline ls X`` According to API schema, pipeline.errors should contain an array Fixes #3119 Co-authored-by: Alberto Alcón <albertoalcon@bit2me.com>
This commit is contained in:
@@ -74,7 +74,7 @@ type (
|
|||||||
Parent int64 `json:"parent"`
|
Parent int64 `json:"parent"`
|
||||||
Event string `json:"event"`
|
Event string `json:"event"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Errors PipelineError `json:"errors"`
|
Errors []*PipelineError `json:"errors"`
|
||||||
// Deprecated TODO remove in 3.x
|
// Deprecated TODO remove in 3.x
|
||||||
Enqueued int64 `json:"enqueued_at"`
|
Enqueued int64 `json:"enqueued_at"`
|
||||||
Created int64 `json:"created_at"`
|
Created int64 `json:"created_at"`
|
||||||
|
Reference in New Issue
Block a user