From 22ed9b7b92276ef90fdbed1aba7b09af0102c198 Mon Sep 17 00:00:00 2001 From: Preston Sego <LPSego3+dev@gmail.com> Date: Tue, 14 Apr 2020 00:38:09 -0400 Subject: [PATCH] fix(github): Support skipped state for Workflows (#5959) --- lib/platform/github/index.spec.ts | 8 +++++++- lib/platform/github/index.ts | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/platform/github/index.spec.ts b/lib/platform/github/index.spec.ts index 505b53e2f9..10c3590b36 100644 --- a/lib/platform/github/index.spec.ts +++ b/lib/platform/github/index.spec.ts @@ -717,8 +717,14 @@ describe('platform/github', () => { () => ({ body: { - total_count: 2, + total_count: 3, check_runs: [ + { + id: 2390199, + status: 'completed', + conclusion: 'skipped', + name: 'Conditional GitHub Action', + }, { id: 23950198, status: 'completed', diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts index bfa4d08fe5..ac5d3985e4 100644 --- a/lib/platform/github/index.ts +++ b/lib/platform/github/index.ts @@ -1175,7 +1175,9 @@ export async function getBranchStatus( } if ( (commitStatus.state === 'success' || commitStatus.statuses.length === 0) && - checkRuns.every((run) => ['neutral', 'success'].includes(run.conclusion)) + checkRuns.every((run) => + ['skipped', 'neutral', 'success'].includes(run.conclusion) + ) ) { return BranchStatus.green; } -- GitLab