@@ -10,7 +10,7 @@ import { PullRequest } from '../common/cache';
10
10
import PullRequestContext from '../common/context' ;
11
11
import { Reviewer } from '../components/reviewer' ;
12
12
import { Dropdown } from './dropdown' ;
13
- import { alertIcon , checkIcon , deleteIcon , mergeIcon , pendingIcon } from './icon' ;
13
+ import { alertIcon , checkIcon , deleteIcon , mergeIcon , pendingIcon , skipIcon } from './icon' ;
14
14
import { nbsp } from './space' ;
15
15
import { Avatar } from './user' ;
16
16
@@ -51,7 +51,7 @@ const StatusChecks = ({ pr }: { pr: PullRequest }) => {
51
51
< div className = "status-section" >
52
52
< div className = "status-item" >
53
53
< StateIcon state = { status . state } />
54
- < div > { getSummaryLabel ( status . statuses ) } </ div >
54
+ < div > { getSummaryLabel ( status . statuses ) } </ div >
55
55
< a href = "javascript:void(0)" aria-role = "button" onClick = { toggleDetails } >
56
56
{ showDetails ? 'Hide' : 'Show' }
57
57
</ a >
@@ -375,14 +375,16 @@ function getSummaryLabel(statuses: any[]) {
375
375
for ( const statusType of Object . keys ( statusTypes ) ) {
376
376
const numOfType = statusTypes [ statusType ] . length ;
377
377
let statusAdjective = '' ;
378
-
379
378
switch ( statusType ) {
380
379
case 'success' :
381
380
statusAdjective = 'successful' ;
382
381
break ;
383
382
case 'failure' :
384
383
statusAdjective = 'failed' ;
385
384
break ;
385
+ case 'neutral' :
386
+ statusAdjective = 'skipped' ;
387
+ break ;
386
388
default :
387
389
statusAdjective = 'pending' ;
388
390
}
@@ -398,6 +400,8 @@ function getSummaryLabel(statuses: any[]) {
398
400
399
401
function StateIcon ( { state } : { state : string } ) {
400
402
switch ( state ) {
403
+ case 'neutral' :
404
+ return skipIcon ;
401
405
case 'success' :
402
406
return checkIcon ;
403
407
case 'failure' :
0 commit comments