Skip to content

Commit

Permalink
Merge pull request #3913 from Expensify/Rory-LogGetPRsMergedBetween
Browse files Browse the repository at this point in the history
[No QA] Add logs directly inside GetPRsMergedBetween
  • Loading branch information
Jag96 authored Jul 7, 2021
2 parents f11d808 + 361d317 commit dd90800
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/createOrUpdateStagingDeploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ const {execSync} = __nccwpck_require__(3129);
* @returns {Array}
*/
function getPullRequestsMergedBetween(fromRef, toRef) {
console.log('Getting pull requests merged between the following refs:', fromRef, toRef);
const localGitLogs = execSync(`git log --format="%s" ${fromRef}...${toRef}`).toString();
return _.map(
[...localGitLogs.matchAll(/Merge pull request #(\d{1,6}) from (?!Expensify\/(?:master|main|version-))/g)],
Expand Down
1 change: 1 addition & 0 deletions .github/actions/getDeployPullRequestList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const {execSync} = __nccwpck_require__(3129);
* @returns {Array}
*/
function getPullRequestsMergedBetween(fromRef, toRef) {
console.log('Getting pull requests merged between the following refs:', fromRef, toRef);
const localGitLogs = execSync(`git log --format="%s" ${fromRef}...${toRef}`).toString();
return _.map(
[...localGitLogs.matchAll(/Merge pull request #(\d{1,6}) from (?!Expensify\/(?:master|main|version-))/g)],
Expand Down
1 change: 1 addition & 0 deletions .github/libs/GitUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const {execSync} = require('child_process');
* @returns {Array}
*/
function getPullRequestsMergedBetween(fromRef, toRef) {
console.log('Getting pull requests merged between the following refs:', fromRef, toRef);
const localGitLogs = execSync(`git log --format="%s" ${fromRef}...${toRef}`).toString();
return _.map(
[...localGitLogs.matchAll(/Merge pull request #(\d{1,6}) from (?!Expensify\/(?:master|main|version-))/g)],
Expand Down

0 comments on commit dd90800

Please sign in to comment.