Skip to content
Snippets Groups Projects
Commit 427a279b authored by Rhys Arkins's avatar Rhys Arkins
Browse files

Skip changelog if no workingVersion or equal to newVersion

parent a5f80716
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,9 @@ function processUpgradesSequentially(upgrades) { ...@@ -52,6 +52,9 @@ function processUpgradesSequentially(upgrades) {
} }
function getChangelog(upgrade) { function getChangelog(upgrade) {
if (!upgrade.workingVersion || upgrade.workingVersion === upgrade.newVersion) {
return Object.assign(upgrade, { changelog: '' });
}
const semverString = `>${upgrade.workingVersion} <=${upgrade.newVersion}`; const semverString = `>${upgrade.workingVersion} <=${upgrade.newVersion}`;
let log = ''; let log = '';
logger.debug(`semverString: ${semverString}`); logger.debug(`semverString: ${semverString}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment