From b1be2d852df13bc4b0db027d2657702b8d179868 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 18 Jul 2019 22:13:20 +0200
Subject: [PATCH] fix(github): pass comment platform-failure up

---
 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 d8ad3e570b..e6184c8fbb 100644
--- a/lib/platform/github/index.ts
+++ b/lib/platform/github/index.ts
@@ -1061,6 +1061,9 @@ export async function ensureComment(
     }
     return true;
   } catch (err) /* istanbul ignore next */ {
+    if (err.message === 'platform-failure') {
+      throw err;
+    }
     if (
       err.message === 'Unable to create comment because issue is locked. (403)'
     ) {
-- 
GitLab