Skip to content

Commit b3a37b9

Browse files
authored
Merge pull request #126 from shaheed121/fix_gitlab_payload
Changing duration types from int64 to float64
2 parents e5ab838 + 56d9dff commit b3a37b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gitlab/payload.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ type BuildEventPayload struct {
143143
BuildStatus string `json:"build_status"`
144144
BuildStartedAt customTime `json:"build_started_at"`
145145
BuildFinishedAt customTime `json:"build_finished_at"`
146-
BuildDuration int64 `json:"build_duration"`
146+
BuildDuration float64 `json:"build_duration"`
147147
BuildAllowFailure bool `json:"build_allow_failure"`
148148
ProjectID int64 `json:"project_id"`
149149
ProjectName string `json:"project_name"`
@@ -165,7 +165,7 @@ type JobEventPayload struct {
165165
BuildStatus string `json:"build_status"`
166166
BuildStartedAt customTime `json:"build_started_at"`
167167
BuildFinishedAt customTime `json:"build_finished_at"`
168-
BuildDuration int64 `json:"build_duration"`
168+
BuildDuration float64 `json:"build_duration"`
169169
BuildAllowFailure bool `json:"build_allow_failure"`
170170
BuildFailureReason string `json:"build_failure_reason"`
171171
PipelineID int64 `json:"pipeline_id"`
@@ -260,7 +260,7 @@ type BuildCommit struct {
260260
AuthorName string `json:"author_name"`
261261
AuthorEmail string `json:"author_email"`
262262
Status string `json:"status"`
263-
Duration int64 `json:"duration"`
263+
Duration float64 `json:"duration"`
264264
StartedAt customTime `json:"started_at"`
265265
FinishedAt customTime `json:"finished_at"`
266266
}

0 commit comments

Comments
 (0)