loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add step start time to `ViewStepLog` (#24980)

Part of #24876

According to
https://github.com/go-gitea/gitea/pull/24876#discussion_r1205565622 , we
need the start time of the step to get the log time offset.

authored by

Zettat123 and committed by
GitHub
28077e66 355a0781

+8 -6
+8 -6
routers/web/repo/actions/view.go
··· 106 106 } 107 107 108 108 type ViewStepLog struct { 109 - Step int `json:"step"` 110 - Cursor int64 `json:"cursor"` 111 - Lines []*ViewStepLogLine `json:"lines"` 109 + Step int `json:"step"` 110 + Cursor int64 `json:"cursor"` 111 + Lines []*ViewStepLogLine `json:"lines"` 112 + Started int64 `json:"started"` 112 113 } 113 114 114 115 type ViewStepLogLine struct { ··· 241 242 } 242 243 243 244 resp.Logs.StepsLog = append(resp.Logs.StepsLog, &ViewStepLog{ 244 - Step: cursor.Step, 245 - Cursor: cursor.Cursor + int64(len(logLines)), 246 - Lines: logLines, 245 + Step: cursor.Step, 246 + Cursor: cursor.Cursor + int64(len(logLines)), 247 + Lines: logLines, 248 + Started: int64(step.Started), 247 249 }) 248 250 } 249 251 }