File tree 3 files changed +9
-3
lines changed
createOrUpdateStagingDeploy
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,10 @@ const {execSync} = __nccwpck_require__(3129);
193
193
* @returns {Array}
194
194
*/
195
195
function getPullRequestsMergedBetween(fromRef, toRef) {
196
+ const command = `git log --format="%s" ${fromRef}...${toRef}`;
196
197
console.log('Getting pull requests merged between the following refs:', fromRef, toRef);
197
- const localGitLogs = execSync(`git log --format="%s" ${fromRef}...${toRef}`).toString();
198
+ console.log('Running command: ', command);
199
+ const localGitLogs = execSync(command).toString();
198
200
return _.map(
199
201
[...localGitLogs.matchAll(/Merge pull request #(\d{1,6}) from (?!Expensify\/(?:master|main|version-))/g)],
200
202
match => match[1],
Original file line number Diff line number Diff line change @@ -117,8 +117,10 @@ const {execSync} = __nccwpck_require__(3129);
117
117
* @returns {Array}
118
118
*/
119
119
function getPullRequestsMergedBetween(fromRef, toRef) {
120
+ const command = `git log --format="%s" ${fromRef}...${toRef}`;
120
121
console.log('Getting pull requests merged between the following refs:', fromRef, toRef);
121
- const localGitLogs = execSync(`git log --format="%s" ${fromRef}...${toRef}`).toString();
122
+ console.log('Running command: ', command);
123
+ const localGitLogs = execSync(command).toString();
122
124
return _.map(
123
125
[...localGitLogs.matchAll(/Merge pull request #(\d{1,6}) from (?!Expensify\/(?:master|main|version-))/g)],
124
126
match => match[1],
Original file line number Diff line number Diff line change @@ -9,8 +9,10 @@ const {execSync} = require('child_process');
9
9
* @returns {Array }
10
10
*/
11
11
function getPullRequestsMergedBetween ( fromRef , toRef ) {
12
+ const command = `git log --format="%s" ${ fromRef } ...${ toRef } ` ;
12
13
console . log ( 'Getting pull requests merged between the following refs:' , fromRef , toRef ) ;
13
- const localGitLogs = execSync ( `git log --format="%s" ${ fromRef } ...${ toRef } ` ) . toString ( ) ;
14
+ console . log ( 'Running command: ' , command ) ;
15
+ const localGitLogs = execSync ( command ) . toString ( ) ;
14
16
return _ . map (
15
17
[ ...localGitLogs . matchAll ( / M e r g e p u l l r e q u e s t # ( \d { 1 , 6 } ) f r o m (? ! E x p e n s i f y \/ (?: m a s t e r | m a i n | v e r s i o n - ) ) / g) ] ,
16
18
match => match [ 1 ] ,
You can’t perform that action at this time.
0 commit comments