From 44d90648f6d63afe2882bc054c69f3aae748ce65 Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 18:05:23 +0300 Subject: [PATCH] Removing logs for debugging --- index.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/index.js b/index.js index 79e5115..a6f2a99 100644 --- a/index.js +++ b/index.js @@ -37,20 +37,16 @@ Toolkit.run(async (tools) => { let foundWord = null; let preid = process.env.INPUT_PREID; - tools.log('Version is set to Begining: ' + version); if ( messages.some( (message) => /^([a-zA-Z]+)(\(.+\))?(\!)\:/.test(message) || majorWords.some((word) => message.includes(word)), ) ) { version = 'major'; - tools.log('Version is set to major'); } else if (messages.some((message) => minorWords.some((word) => message.includes(word)))) { version = 'minor'; - tools.log('Version is set to minor'); } else if (messages.some((message) => patchWords.some((word) => message.includes(word)))) { version = 'patch'; - tools.log('Version is set to patch'); } else if ( messages.some((message) => preReleaseWords.some((word) => { @@ -65,22 +61,9 @@ Toolkit.run(async (tools) => { ) { preid = foundWord.split('-')[1]; version = 'prerelease'; - tools.log('Version is set to prerelease2'); } - // case: if default=prerelease, but rc-wording is also set - // then unset it and do not run, when no rc words found in message - tools.log('Before Login'); - tools.log(version); // null - tools.log('PreID: ' + preid); //prc - tools.log(process.env.INPUT_DEFAULT); - // if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { - // tools.log('Version is set to null'); - // version = null; - // } - if (version === 'prerelease' && preid) { - tools.log('Version is prerelease and it contains a preid'); version = 'prerelease'; version = `${version} --preid=${preid}`; }