diff --git a/.github/actions/createOrUpdateStagingDeploy/index.js b/.github/actions/createOrUpdateStagingDeploy/index.js index 93174ace236..0ad3c41119a 100644 --- a/.github/actions/createOrUpdateStagingDeploy/index.js +++ b/.github/actions/createOrUpdateStagingDeploy/index.js @@ -193,8 +193,10 @@ const {execSync} = __nccwpck_require__(3129); * @returns {Array} */ function getPullRequestsMergedBetween(fromRef, toRef) { + const command = `git log --format="%s" ${fromRef}...${toRef}`; console.log('Getting pull requests merged between the following refs:', fromRef, toRef); - const localGitLogs = execSync(`git log --format="%s" ${fromRef}...${toRef}`).toString(); + console.log('Running command: ', command); + const localGitLogs = execSync(command).toString(); return _.map( [...localGitLogs.matchAll(/Merge pull request #(\d{1,6}) from (?!Expensify\/(?:master|main|version-))/g)], match => match[1], diff --git a/.github/actions/getDeployPullRequestList/index.js b/.github/actions/getDeployPullRequestList/index.js index 6fcb94be23e..3b4be6fd47c 100644 --- a/.github/actions/getDeployPullRequestList/index.js +++ b/.github/actions/getDeployPullRequestList/index.js @@ -117,8 +117,10 @@ const {execSync} = __nccwpck_require__(3129); * @returns {Array} */ function getPullRequestsMergedBetween(fromRef, toRef) { + const command = `git log --format="%s" ${fromRef}...${toRef}`; console.log('Getting pull requests merged between the following refs:', fromRef, toRef); - const localGitLogs = execSync(`git log --format="%s" ${fromRef}...${toRef}`).toString(); + console.log('Running command: ', command); + const localGitLogs = execSync(command).toString(); return _.map( [...localGitLogs.matchAll(/Merge pull request #(\d{1,6}) from (?!Expensify\/(?:master|main|version-))/g)], match => match[1], diff --git a/.github/libs/GitUtils.js b/.github/libs/GitUtils.js index 77bb2c73da2..5f86983ac6c 100644 --- a/.github/libs/GitUtils.js +++ b/.github/libs/GitUtils.js @@ -9,8 +9,10 @@ const {execSync} = require('child_process'); * @returns {Array} */ function getPullRequestsMergedBetween(fromRef, toRef) { + const command = `git log --format="%s" ${fromRef}...${toRef}`; console.log('Getting pull requests merged between the following refs:', fromRef, toRef); - const localGitLogs = execSync(`git log --format="%s" ${fromRef}...${toRef}`).toString(); + console.log('Running command: ', command); + const localGitLogs = execSync(command).toString(); return _.map( [...localGitLogs.matchAll(/Merge pull request #(\d{1,6}) from (?!Expensify\/(?:master|main|version-))/g)], match => match[1],