From 46a329b5f1e9b9a2e9b9bdc60dc70e4ae6f5f3ac Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 14 Aug 2019 19:24:51 +0200 Subject: [PATCH] fix(github): platform-failure when fetching check runs --- lib/platform/github/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts index e07762bf13..d207cc4acf 100644 --- a/lib/platform/github/index.ts +++ b/lib/platform/github/index.ts @@ -614,6 +614,9 @@ export async function getBranchStatus( logger.debug({ result: checkRunsRaw }, 'No check runs found'); } } catch (err) /* istanbul ignore next */ { + if (err.message === 'platform-failure') { + throw err; + } if ( err.statusCode === 403 || err.message === 'integration-unauthorized' -- GitLab