mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-22 21:35:21 +02:00
feat: update job info
This commit is contained in:
parent
1886156329
commit
295a7f68c8
@ -144,11 +144,8 @@ func ViewPost(ctx *context_module.Context) {
|
||||
resp.StateData.CurrentJobInfo.Title = current.Name
|
||||
resp.StateData.CurrentJobSteps = make([]ViewJobStep, 0)
|
||||
resp.LogsData.StreamingLogs = make([]ViewStepLog, 0, len(req.StepLogCursors))
|
||||
if task == nil {
|
||||
resp.StateData.CurrentJobInfo.Detail = "wait to be pick up by a runner"
|
||||
} else {
|
||||
resp.StateData.CurrentJobInfo.Detail = "TODO: more detail info" // TODO: more detail info
|
||||
|
||||
resp.StateData.CurrentJobInfo.Detail = current.Status.String()
|
||||
if task != nil {
|
||||
steps := bots.FullSteps(task)
|
||||
|
||||
resp.StateData.CurrentJobSteps = make([]ViewJobStep, len(steps))
|
||||
|
Loading…
x
Reference in New Issue
Block a user