Commit b6145bf 1 parent 707ecec commit b6145bf Copy full SHA for b6145bf
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ type ViewRequest struct {
49
49
type ViewResponse struct {
50
50
State struct {
51
51
Run struct {
52
- HTMLURL string `json:"htmlurl "`
52
+ Link string `json:"link "`
53
53
Title string `json:"title"`
54
54
CanCancel bool `json:"canCancel"`
55
55
Done bool `json:"done"`
@@ -105,7 +105,7 @@ func ViewPost(ctx *context_module.Context) {
105
105
resp := & ViewResponse {}
106
106
107
107
resp .State .Run .Title = run .Title
108
- resp .State .Run .HTMLURL = run .HTMLURL ()
108
+ resp .State .Run .Link = run .Link ()
109
109
resp .State .Run .CanCancel = ! run .Status .IsDone () && ctx .Repo .CanWrite (unit .TypeActions )
110
110
resp .State .Run .Done = run .Status .IsDone ()
111
111
resp .State .Run .Jobs = make ([]* ViewJob , 0 , len (jobs )) // marshal to '[]' instead fo 'null' in json
Original file line number Diff line number Diff line change 12
12
<div class =" action-view-left" >
13
13
<div class =" job-group-section" >
14
14
<div class =" job-brief-list" >
15
- <a class =" job-brief-item" v-for =" (job, index) in run.jobs" :key =" job.id" :href =" run.htmlurl +'/jobs/'+index" >
15
+ <a class =" job-brief-item" v-for =" (job, index) in run.jobs" :key =" job.id" :href =" run.link +'/jobs/'+index" >
16
16
<SvgIcon name =" octicon-check-circle-fill" class =" green" v-if =" job.status === 'success'" />
17
17
<SvgIcon name =" octicon-skip" class =" ui text grey" v-else-if =" job.status === 'skipped'" />
18
18
<SvgIcon name =" octicon-clock" class =" ui text yellow" v-else-if =" job.status === 'waiting'" />
@@ -92,7 +92,7 @@ const sfc = {
92
92
93
93
// provided by backend
94
94
run: {
95
- htmlurl : ' ' ,
95
+ link : ' ' ,
96
96
title: ' ' ,
97
97
canCancel: false ,
98
98
done: false ,
@@ -163,11 +163,11 @@ const sfc = {
163
163
},
164
164
// rerun a job
165
165
rerunJob (idx ) {
166
- this .fetch (` ${ this .run .htmlurl } /jobs/${ idx} /rerun` );
166
+ this .fetch (` ${ this .run .link } /jobs/${ idx} /rerun` );
167
167
},
168
168
// cancel a run
169
169
cancelRun () {
170
- this .fetch (` ${ this .run .htmlurl } /cancel` );
170
+ this .fetch (` ${ this .run .link } /cancel` );
171
171
},
172
172
173
173
createLogLine (line ) {
You can’t perform that action at this time.
0 commit comments