diff --git a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js index a4ebf20428fe..5fcd41200f47 100644 --- a/.github/actions/javascript/createOrUpdateStagingDeploy/index.js +++ b/.github/actions/javascript/createOrUpdateStagingDeploy/index.js @@ -220,6 +220,7 @@ const sanitizeStringForJSONParse = __nccwpck_require__(9338); /** * @param {String} tag */ +// eslint-disable-next-line no-unused-vars function fetchTagIfNeeded(tag) { try { console.log(`Checking if tag ${tag} exists locally`); @@ -249,8 +250,10 @@ function fetchTagIfNeeded(tag) { * @returns {Promise>>} */ function getCommitHistoryAsJSON(fromTag, toTag) { - fetchTagIfNeeded(fromTag); - fetchTagIfNeeded(toTag); + // fetchTagIfNeeded(fromTag); + // fetchTagIfNeeded(toTag); + // Note: this is a temporary measure until we can figure out a faster way to fetch only what's needed + execSync('git fetch --all --tags'); console.log('Getting pull requests merged between the following tags:', fromTag, toTag); return new Promise((resolve, reject) => { diff --git a/.github/actions/javascript/getDeployPullRequestList/index.js b/.github/actions/javascript/getDeployPullRequestList/index.js index ba7ddfb49054..2d3b51f58f2e 100644 --- a/.github/actions/javascript/getDeployPullRequestList/index.js +++ b/.github/actions/javascript/getDeployPullRequestList/index.js @@ -154,6 +154,7 @@ const sanitizeStringForJSONParse = __nccwpck_require__(9338); /** * @param {String} tag */ +// eslint-disable-next-line no-unused-vars function fetchTagIfNeeded(tag) { try { console.log(`Checking if tag ${tag} exists locally`); @@ -183,8 +184,10 @@ function fetchTagIfNeeded(tag) { * @returns {Promise>>} */ function getCommitHistoryAsJSON(fromTag, toTag) { - fetchTagIfNeeded(fromTag); - fetchTagIfNeeded(toTag); + // fetchTagIfNeeded(fromTag); + // fetchTagIfNeeded(toTag); + // Note: this is a temporary measure until we can figure out a faster way to fetch only what's needed + execSync('git fetch --all --tags'); console.log('Getting pull requests merged between the following tags:', fromTag, toTag); return new Promise((resolve, reject) => { diff --git a/.github/libs/GitUtils.js b/.github/libs/GitUtils.js index e7b062dd5df6..af76465e5b1e 100644 --- a/.github/libs/GitUtils.js +++ b/.github/libs/GitUtils.js @@ -6,6 +6,7 @@ const sanitizeStringForJSONParse = require('./sanitizeStringForJSONParse'); /** * @param {String} tag */ +// eslint-disable-next-line no-unused-vars function fetchTagIfNeeded(tag) { try { console.log(`Checking if tag ${tag} exists locally`); @@ -35,8 +36,10 @@ function fetchTagIfNeeded(tag) { * @returns {Promise>>} */ function getCommitHistoryAsJSON(fromTag, toTag) { - fetchTagIfNeeded(fromTag); - fetchTagIfNeeded(toTag); + // fetchTagIfNeeded(fromTag); + // fetchTagIfNeeded(toTag); + // Note: this is a temporary measure until we can figure out a faster way to fetch only what's needed + execSync('git fetch --all --tags'); console.log('Getting pull requests merged between the following tags:', fromTag, toTag); return new Promise((resolve, reject) => {