From 1b935db8adc2d7842dfaae01c21c4ae0744c798d Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 26 Jun 2018 10:51:27 +0200 Subject: [PATCH] fix: skip setBranchStatus when in forkMode --- lib/platform/github/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js index a3840cb219..4502e70b86 100644 --- a/lib/platform/github/index.js +++ b/lib/platform/github/index.js @@ -485,6 +485,11 @@ async function setBranchStatus( state, targetUrl ) { + // istanbul ignore if + if (config.parentRepo) { + logger.info('Cannot set branch status when in forking mode'); + return; + } const existingStatus = await getBranchStatusCheck(branchName, context); if (existingStatus === state) { return; -- GitLab