From f209256bd9ca6ef3a5e9b7987fa418edd04747eb Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Mon, 21 Jul 2025 12:30:55 +0100 Subject: [PATCH] woodpecker-go/types: fix time-related struct field tags (#5343) --- woodpecker-go/woodpecker/types.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/woodpecker-go/woodpecker/types.go b/woodpecker-go/woodpecker/types.go index 3e36b1dfc..99b3099fc 100644 --- a/woodpecker-go/woodpecker/types.go +++ b/woodpecker-go/woodpecker/types.go @@ -102,10 +102,10 @@ type ( Event string `json:"event"` Status string `json:"status"` Errors []*PipelineError `json:"errors"` - Created int64 `json:"created_at"` - Updated int64 `json:"updated_at"` - Started int64 `json:"started_at"` - Finished int64 `json:"finished_at"` + Created int64 `json:"created"` + Updated int64 `json:"updated"` + Started int64 `json:"started"` + Finished int64 `json:"finished"` Deploy string `json:"deploy_to"` Commit string `json:"commit"` Branch string `json:"branch"` @@ -120,7 +120,7 @@ type ( Email string `json:"author_email"` ForgeURL string `json:"forge_url"` Reviewer string `json:"reviewed_by"` - Reviewed int64 `json:"reviewed_at"` + Reviewed int64 `json:"reviewed"` Workflows []*Workflow `json:"workflows,omitempty"` } @@ -131,8 +131,8 @@ type ( Name string `json:"name"` State string `json:"state"` Error string `json:"error,omitempty"` - Started int64 `json:"start_time,omitempty"` - Stopped int64 `json:"end_time,omitempty"` + Started int64 `json:"started,omitempty"` + Stopped int64 `json:"finished,omitempty"` AgentID int64 `json:"agent_id,omitempty"` Platform string `json:"platform,omitempty"` Environ map[string]string `json:"environ,omitempty"` @@ -148,8 +148,8 @@ type ( State string `json:"state"` Error string `json:"error,omitempty"` ExitCode int `json:"exit_code"` - Started int64 `json:"start_time,omitempty"` - Stopped int64 `json:"end_time,omitempty"` + Started int64 `json:"started,omitempty"` + Stopped int64 `json:"finished,omitempty"` Type StepType `json:"type,omitempty"` }