File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ type ViewJob struct {
75
75
Name string `json:"name"`
76
76
Status string `json:"status"`
77
77
CanRerun bool `json:"canRerun"`
78
+ Duration string `json:"duration"`
78
79
}
79
80
80
81
type ViewCommit struct {
@@ -144,6 +145,7 @@ func ViewPost(ctx *context_module.Context) {
144
145
Name : v .Name ,
145
146
Status : v .Status .String (),
146
147
CanRerun : v .Status .IsDone () && ctx .Repo .CanWrite (unit .TypeActions ),
148
+ Duration : v .Duration ().String (),
147
149
})
148
150
}
149
151
Original file line number Diff line number Diff line change 32
32
<ActionRunStatus :status =" job.status" />
33
33
<span class =" ui text gt-mx-3" >{{ job.name }}</span >
34
34
</a >
35
+ <span class =" step-summary-duration" >{{ job.duration }}</span >
35
36
<button class =" job-brief-rerun" @click =" rerunJob(index)" v-if =" job.canRerun" >
36
37
<SvgIcon name =" octicon-sync" class =" ui text black" />
37
38
</button >
57
58
<ActionRunStatus :status =" jobStep.status" class =" gt-mr-3" />
58
59
59
60
<span class =" step-summary-msg" >{{ jobStep.summary }}</span >
60
- <span class =" step-summary-dur " >{{ jobStep.duration }}</span >
61
+ <span class =" step-summary-duration " >{{ jobStep.duration }}</span >
61
62
</div >
62
63
63
64
<!-- the log elements could be a lot, do not use v-if to destroy/reconstruct the DOM -->
@@ -112,6 +113,7 @@ const sfc = {
112
113
// name: '',
113
114
// status: '',
114
115
// canRerun: false,
116
+ // duration: '',
115
117
// },
116
118
],
117
119
commit: {
@@ -492,7 +494,7 @@ export function ansiLogToHTML(line) {
492
494
flex: 1 ;
493
495
}
494
496
495
- .job - step- container .job - step- summary .step - summary- dur {
497
+ .job - step- container .job - step- summary .step - summary- duration {
496
498
margin- left: 16px ;
497
499
}
498
500
You can’t perform that action at this time.
0 commit comments