From d72e55e78920f810bf223040458acd2c84a5e976 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 9 May 2019 11:40:13 +0200 Subject: [PATCH] fix: no bump if the value is unchanged Closes #3648 --- lib/workers/repository/process/lookup/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/workers/repository/process/lookup/index.js b/lib/workers/repository/process/lookup/index.js index cc98dd3a86..458621c751 100644 --- a/lib/workers/repository/process/lookup/index.js +++ b/lib/workers/repository/process/lookup/index.js @@ -172,6 +172,14 @@ async function lookupUpdates(config) { if (!config.lockedVersion) { continue; // eslint-disable-line no-continue } + // istanbul ignore if + if (rangeStrategy === 'bump') { + logger.trace( + { depName, currentValue, lockedVersion, toVersion }, + 'Skipping bump because newValue is the same' + ); + continue; // eslint-disable-line no-continue + } update.updateType = 'lockfileUpdate'; update.fromVersion = lockedVersion; update.displayFrom = lockedVersion; -- GitLab