From 41194a63acb6eef97577d7f9e5b975d3125e1aa0 Mon Sep 17 00:00:00 2001 From: amio Date: Fri, 8 Jan 2021 11:07:53 +0800 Subject: [PATCH] fix: handle "skipped" status in github combined checks (#471) --- api/github.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/github.ts b/api/github.ts index 4f504b9..9945ae4 100644 --- a/api/github.ts +++ b/api/github.ts @@ -97,6 +97,7 @@ function combined (states: Array, 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'