Skip to content

Commit

Permalink
Fix the merge to stage process (#3068)
Browse files Browse the repository at this point in the history
* Fix the merge to stage process

* Remove logging the body
  • Loading branch information
mokimo authored Oct 21, 2024
1 parent 2219387 commit 9b33a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/merge-to-stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ const main = async (params) => {
const stageToMainPR = await getStageToMainPR();
console.log('has Stage to Main PR:', !!stageToMainPR);
if (stageToMainPR) body = stageToMainPR.body;
existingPRCount = body.match(/https:\/\/github\.com\/adobecom\/milo\/pull\/\d+/g).length;
existingPRCount = body.match(/https:\/\/github\.com\/adobecom\/milo\/pull\/\d+/g)?.length || 0;
console.log(`Number of PRs already in the batch: ${existingPRCount}`);

if (mergeLimitExceeded()) return console.log(`Maximum number of '${MAX_MERGES}' PRs already merged. Stopping execution`);
Expand Down

0 comments on commit 9b33a4e

Please sign in to comment.