44< meta charset ="utf-8 ">
55< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
66< title > Release scope</ title >
7+ < base target ="_blank ">
78< script >
89 if ( ! / ( \/ | \. h t m l ) $ / . test ( location . pathname ) ) location . replace ( location . pathname + "/" + location . search + location . hash ) ;
910</ script >
1011< style >
1112 : root {
1213 --bg : # ffffff; --fg : # 1f2328; --muted : # 656d76; --border : # d0d7de; --panel : # f6f8fa;
13- --accent : # 0969da; --bad : # cf222e; --warn : # 9a6700;
14+ --accent : # 0969da; --bad : # cf222e; --warn : # 9a6700; --good : # 1a7f37 ;
1415 }
1516 @media ( prefers-color-scheme : dark) {
1617 : root {
1718 --bg : # 0d1117; --fg : # e6edf3; --muted : # 8d96a0; --border : # 30363d; --panel : # 161b22;
18- --accent : # 4493f8; --bad : # f85149; --warn : # d29922;
19+ --accent : # 4493f8; --bad : # f85149; --warn : # d29922; --good : # 3fb950 ;
1920 }
2021 }
2122 [x-cloak ] { display : none !important ; }
5859 . service . body { padding : 8px 12px ; }
5960 . service . body > p : first-child { margin-top : 0 ; }
6061 . picked-tag { font-weight : 600 ; }
62+ . status { display : inline-block; padding : 0 8px ; border : 1px solid currentColor; border-radius : 10px ; font-size : 12px ;
63+ font-weight : 600 ; white-space : nowrap; color : var ( --muted ) ; }
64+ . status-indeterminate { color : var ( --accent ) ; background : color-mix ( in srgb, var ( --accent ) 12% , transparent) ; }
65+ . status-done { color : var ( --good ) ; background : color-mix ( in srgb, var ( --good ) 12% , transparent) ; }
6166 button . picked { border-color : var ( --accent ) ; color : var ( --accent ) ; }
6267</ style >
6368</ head >
@@ -76,7 +81,8 @@ <h1 x-text="report.jira_scope.length ? 'Release scope: ' + report.jira_scope.joi
7681 < template x-for ="key in report.jira_scope " :key ="key ">
7782 < li >
7883 < a :href ="issue(key) && issue(key).url " x-text ="key "> </ a >
79- < span x-text ="issue(key) ? issue(key).summary + ' · ' + issue(key).status : 'not found in Jira' "> </ span >
84+ < span x-show ="issue(key) " :class ="statusClass(issue(key)) " x-text ="issue(key) && issue(key).status "> </ span >
85+ < span x-text ="issue(key) ? issue(key).summary : 'not found in Jira' "> </ span >
8086 </ li >
8187 </ template >
8288 </ ul >
@@ -157,7 +163,8 @@ <h2>Services</h2>
157163 < template x-for ="key in row.jira_keys " :key ="key.key ">
158164 < div >
159165 < a :href ="key.url " x-text ="key.key "> </ a >
160- < span x-text ="issue(key.key) ? issue(key.key).summary + ' · ' + issue(key.key).status : '' "> </ span >
166+ < span x-show ="issue(key.key) " :class ="statusClass(issue(key.key)) " x-text ="issue(key.key) && issue(key.key).status "> </ span >
167+ < span x-text ="issue(key.key) ? issue(key.key).summary : '' "> </ span >
161168 </ div >
162169 </ template >
163170 </ td >
@@ -167,7 +174,7 @@ <h2>Services</h2>
167174 < div >
168175 < span x-text ="line.label "> </ span >
169176 < a :href ="line.url " x-text ="line.name "> </ a >
170- < span x-show ="line.allowed " class ="muted "> (allowed)</ span >
177+ < span x-show ="line.allowed " class ="muted "> (allowed to fail )</ span >
171178 </ div >
172179 </ template >
173180 </ td >
@@ -201,8 +208,8 @@ <h3 x-text="'Jira tasks (' + tasks.length + ')'"></h3>
201208 < template x-for ="task in tasks " :key ="task.key ">
202209 < li >
203210 < a :href ="task.url " x-text ="task.key "> </ a >
204- < span x-text ="task.issue ? task.issue.summary + ' · ' + task.issue.status : '' "> </ span >
205- < span x-show ="task.issue && task.issue.status_category !== 'done' " class =" warn " > not done </ span >
211+ < span x-show ="task.issue " :class =" statusClass( task.issue) " x-text =" task.issue && task.issue.status "> </ span >
212+ < span x-text ="task.issue ? task.issue.summary : '' " > </ span >
206213 < span x-show ="isMissing(task.key) " class ="warn "> not found in Jira</ span >
207214 </ li >
208215 </ template >
@@ -411,6 +418,9 @@ <h3>Release post</h3>
411418 issue ( key ) {
412419 return this . report . jira ? this . report . jira . issues [ key ] : undefined ;
413420 } ,
421+ statusClass ( issue ) {
422+ return issue ? `status status-${ issue . status_category || "new" } ` : "" ;
423+ } ,
414424 isMissing ( key ) {
415425 return Boolean ( this . report . jira && this . report . jira . missing . includes ( key ) ) ;
416426 } ,
@@ -439,7 +449,7 @@ <h3>Release post</h3>
439449 const jobs = pipelines . filter ( Boolean ) . flatMap ( ( pipeline ) => pipeline . failed_jobs ) ;
440450 const allowed = jobs . filter ( ( job ) => job . allow_failure ) . length ;
441451 const blocking = jobs . length - allowed ;
442- return [ blocking ? `❌ ${ blocking } ` : "" , allowed ? `⚠️ ${ allowed } allowed` : "" ] . filter ( Boolean ) . join ( " · " ) ;
452+ return [ blocking ? `❌ ${ blocking } failed ` : "" , allowed ? `${ allowed } failed, allowed to fail ` : "" ] . filter ( Boolean ) . join ( " · " ) ;
443453 } ,
444454 failedJobs ( row ) {
445455 const lines = [ ] ;
0 commit comments