mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-05 05:37:45 +00:00
woodpecker-go/types: fix time-related struct field tags (#5343)
This commit is contained in:
parent
7a3940e7bf
commit
f209256bd9
1 changed files with 9 additions and 9 deletions
|
@ -102,10 +102,10 @@ type (
|
||||||
Event string `json:"event"`
|
Event string `json:"event"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Errors []*PipelineError `json:"errors"`
|
Errors []*PipelineError `json:"errors"`
|
||||||
Created int64 `json:"created_at"`
|
Created int64 `json:"created"`
|
||||||
Updated int64 `json:"updated_at"`
|
Updated int64 `json:"updated"`
|
||||||
Started int64 `json:"started_at"`
|
Started int64 `json:"started"`
|
||||||
Finished int64 `json:"finished_at"`
|
Finished int64 `json:"finished"`
|
||||||
Deploy string `json:"deploy_to"`
|
Deploy string `json:"deploy_to"`
|
||||||
Commit string `json:"commit"`
|
Commit string `json:"commit"`
|
||||||
Branch string `json:"branch"`
|
Branch string `json:"branch"`
|
||||||
|
@ -120,7 +120,7 @@ type (
|
||||||
Email string `json:"author_email"`
|
Email string `json:"author_email"`
|
||||||
ForgeURL string `json:"forge_url"`
|
ForgeURL string `json:"forge_url"`
|
||||||
Reviewer string `json:"reviewed_by"`
|
Reviewer string `json:"reviewed_by"`
|
||||||
Reviewed int64 `json:"reviewed_at"`
|
Reviewed int64 `json:"reviewed"`
|
||||||
Workflows []*Workflow `json:"workflows,omitempty"`
|
Workflows []*Workflow `json:"workflows,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,8 +131,8 @@ type (
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
State string `json:"state"`
|
State string `json:"state"`
|
||||||
Error string `json:"error,omitempty"`
|
Error string `json:"error,omitempty"`
|
||||||
Started int64 `json:"start_time,omitempty"`
|
Started int64 `json:"started,omitempty"`
|
||||||
Stopped int64 `json:"end_time,omitempty"`
|
Stopped int64 `json:"finished,omitempty"`
|
||||||
AgentID int64 `json:"agent_id,omitempty"`
|
AgentID int64 `json:"agent_id,omitempty"`
|
||||||
Platform string `json:"platform,omitempty"`
|
Platform string `json:"platform,omitempty"`
|
||||||
Environ map[string]string `json:"environ,omitempty"`
|
Environ map[string]string `json:"environ,omitempty"`
|
||||||
|
@ -148,8 +148,8 @@ type (
|
||||||
State string `json:"state"`
|
State string `json:"state"`
|
||||||
Error string `json:"error,omitempty"`
|
Error string `json:"error,omitempty"`
|
||||||
ExitCode int `json:"exit_code"`
|
ExitCode int `json:"exit_code"`
|
||||||
Started int64 `json:"start_time,omitempty"`
|
Started int64 `json:"started,omitempty"`
|
||||||
Stopped int64 `json:"end_time,omitempty"`
|
Stopped int64 `json:"finished,omitempty"`
|
||||||
Type StepType `json:"type,omitempty"`
|
Type StepType `json:"type,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue