kopia lustrzana https://github.com/badgen/badgen.net
fix: handle "skipped" status in github combined checks (#471)
rodzic
fb8a58201b
commit
41194a63ac
|
@ -97,6 +97,7 @@ function combined (states: Array<any>, stateKey: string = 'state') {
|
|||
|
||||
const succeeded = states
|
||||
.filter(x => x[stateKey] !== 'cancelled')
|
||||
.filter(x => x[stateKey] !== 'skipped')
|
||||
.every(x => x[stateKey] === 'success')
|
||||
|
||||
if (succeeded) return 'success'
|
||||
|
|
Ładowanie…
Reference in New Issue