From 2a747d3df04121e1753e08e0c9b9b37a34357a05 Mon Sep 17 00:00:00 2001 From: Francois Laithier Date: Mon, 16 Oct 2023 15:45:34 -0700 Subject: [PATCH] Revert "[NoQA] Temporarily update the getPreviousVeriosn to skip over missing tag" --- .github/actions/javascript/bumpVersion/index.js | 3 --- .../actions/javascript/createOrUpdateStagingDeploy/index.js | 3 --- .github/actions/javascript/getDeployPullRequestList/index.js | 3 --- .github/actions/javascript/getPreviousVersion/index.js | 3 --- .github/libs/versionUpdater.js | 3 --- 5 files changed, 15 deletions(-) diff --git a/.github/actions/javascript/bumpVersion/index.js b/.github/actions/javascript/bumpVersion/index.js index da08d1a060b6..830dbf626548 100644 --- a/.github/actions/javascript/bumpVersion/index.js +++ b/.github/actions/javascript/bumpVersion/index.js @@ -298,9 +298,6 @@ function getPreviousVersion(currentVersion, level) { if (patch === 0) { return getPreviousVersion(currentVersion, SEMANTIC_VERSION_LEVELS.MINOR); } - if (major === 1 && minor === 3 && patch === 83) { - return getVersionStringFromNumber(major, minor, patch - 2, 0); - } return getVersionStringFromNumber(major, minor, patch - 1, 0); } diff --git a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js index 22ad59ed9588..561b8e61bc21 100644 --- a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js +++ b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js @@ -998,9 +998,6 @@ function getPreviousVersion(currentVersion, level) { if (patch === 0) { return getPreviousVersion(currentVersion, SEMANTIC_VERSION_LEVELS.MINOR); } - if (major === 1 && minor === 3 && patch === 83) { - return getVersionStringFromNumber(major, minor, patch - 2, 0); - } return getVersionStringFromNumber(major, minor, patch - 1, 0); } diff --git a/.github/actions/javascript/getDeployPullRequestList/index.js b/.github/actions/javascript/getDeployPullRequestList/index.js index 3aafda798c54..e42f97508bc5 100644 --- a/.github/actions/javascript/getDeployPullRequestList/index.js +++ b/.github/actions/javascript/getDeployPullRequestList/index.js @@ -961,9 +961,6 @@ function getPreviousVersion(currentVersion, level) { if (patch === 0) { return getPreviousVersion(currentVersion, SEMANTIC_VERSION_LEVELS.MINOR); } - if (major === 1 && minor === 3 && patch === 83) { - return getVersionStringFromNumber(major, minor, patch - 2, 0); - } return getVersionStringFromNumber(major, minor, patch - 1, 0); } diff --git a/.github/actions/javascript/getPreviousVersion/index.js b/.github/actions/javascript/getPreviousVersion/index.js index 6770ba99ba69..37db08db93e9 100644 --- a/.github/actions/javascript/getPreviousVersion/index.js +++ b/.github/actions/javascript/getPreviousVersion/index.js @@ -148,9 +148,6 @@ function getPreviousVersion(currentVersion, level) { if (patch === 0) { return getPreviousVersion(currentVersion, SEMANTIC_VERSION_LEVELS.MINOR); } - if (major === 1 && minor === 3 && patch === 83) { - return getVersionStringFromNumber(major, minor, patch - 2, 0); - } return getVersionStringFromNumber(major, minor, patch - 1, 0); } diff --git a/.github/libs/versionUpdater.js b/.github/libs/versionUpdater.js index b78178f443e6..78e8085621bd 100644 --- a/.github/libs/versionUpdater.js +++ b/.github/libs/versionUpdater.js @@ -118,9 +118,6 @@ function getPreviousVersion(currentVersion, level) { if (patch === 0) { return getPreviousVersion(currentVersion, SEMANTIC_VERSION_LEVELS.MINOR); } - if (major === 1 && minor === 3 && patch === 83) { - return getVersionStringFromNumber(major, minor, patch - 2, 0); - } return getVersionStringFromNumber(major, minor, patch - 1, 0); }