From f7bc39efe84b25846825d23e2b36e5a9ba4d1128 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 30 Oct 2018 07:40:09 +0100 Subject: [PATCH] =?UTF-8?q?fix(github):=20don=E2=80=99t=20keep=20processin?= =?UTF-8?q?g=20resource=20not=20accessible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/workers/branch/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/workers/branch/index.js b/lib/workers/branch/index.js index b7d8c70f90..b884250432 100644 --- a/lib/workers/branch/index.js +++ b/lib/workers/branch/index.js @@ -307,6 +307,10 @@ async function processBranch(branchConfig, prHourlyLimitReached, packageFiles) { logger.debug('Passing disk-space error up'); throw err; } + if (err.message.startsWith('Resource not accessible by integration')) { + logger.debug('Passing 403 error up'); + throw err; + } if (err.message === 'update-failure') { logger.warn('Error updating branch: update failure'); } else if ( -- GitLab