mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-15 22:41:19 +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:
parent
d9079b9051
commit
8c63c7a836
1 changed files with 6 additions and 6 deletions
|
@ -69,12 +69,12 @@ type (
|
|||
|
||||
// Pipeline defines a pipeline object.
|
||||
Pipeline struct {
|
||||
ID int64 `json:"id"`
|
||||
Number int64 `json:"number"`
|
||||
Parent int64 `json:"parent"`
|
||||
Event string `json:"event"`
|
||||
Status string `json:"status"`
|
||||
Errors PipelineError `json:"errors"`
|
||||
ID int64 `json:"id"`
|
||||
Number int64 `json:"number"`
|
||||
Parent int64 `json:"parent"`
|
||||
Event string `json:"event"`
|
||||
Status string `json:"status"`
|
||||
Errors []*PipelineError `json:"errors"`
|
||||
// Deprecated TODO remove in 3.x
|
||||
Enqueued int64 `json:"enqueued_at"`
|
||||
Created int64 `json:"created_at"`
|
||||
|
|
Loading…
Reference in a new issue