From d19b15b83d1cd3bbd0c3f701e9a66792385a39cd Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 13 Sep 2018 09:08:25 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20don=E2=80=99t=20update=20lock=20file=20m?= =?UTF-8?q?aintenance=20or=20create=20PR=20out=20of=20schedule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do no lock file maintenance work even if branch exists. Closes #2503 --- lib/workers/branch/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/workers/branch/index.js b/lib/workers/branch/index.js index 7cc50decf2..ee1d6b206b 100644 --- a/lib/workers/branch/index.js +++ b/lib/workers/branch/index.js @@ -118,6 +118,11 @@ async function processBranch(branchConfig, packageFiles) { logger.debug('Skipping branch update as not within schedule'); return 'not-scheduled'; } + // istanbul ignore if + if (config.updateType === 'lockFileMaintenance') { + logger.debug('Skipping Lock file maintenance out of schedule'); + return 'not-scheduled'; + } logger.debug( 'Branch exists but is not scheduled -- will update if necessary' ); -- GitLab