Skip to content

Commit

Permalink
fix: skip lookups no currentVersion or lockedVersion (#12731)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Nov 22, 2021
1 parent d2d356c commit 906dbce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/workers/repository/process/lookup/generate.ts
Expand Up @@ -48,6 +48,12 @@ export function generateUpdate(
}
update.newMajor = versioning.getMajor(newVersion);
update.newMinor = versioning.getMinor(newVersion);
// istanbul ignore if
if (!update.updateType && !currentVersion) {
logger.debug({ update }, 'Update has no currentVersion');
update.newValue = currentValue;
return update;
}
update.updateType =
update.updateType ||
getUpdateType(config, versioning, currentVersion, newVersion);
Expand Down

0 comments on commit 906dbce

Please sign in to comment.