@docupace/pipeline 1.0.81-alpha.3 → 1.0.81-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/merge/cli-merge-all.js +12 -3
- package/src/merge/cli-merge.js +3 -3
package/package.json
CHANGED
|
@@ -226,6 +226,10 @@ async function runPreparePhase(
|
|
|
226
226
|
case 4:
|
|
227
227
|
console.log(`✅ ${configName}: No Changes`);
|
|
228
228
|
break;
|
|
229
|
+
case 5:
|
|
230
|
+
console.log(`❌ Stopping Merge`);
|
|
231
|
+
process.exit(1);
|
|
232
|
+
break;
|
|
229
233
|
default:
|
|
230
234
|
console.log(
|
|
231
235
|
`❌ ${configName}: Unknown error (exit code: ${result.exitCode})`,
|
|
@@ -382,7 +386,7 @@ async function mergeAll(verbose = false) {
|
|
|
382
386
|
config.repositories,
|
|
383
387
|
);
|
|
384
388
|
|
|
385
|
-
if (existingPRs.length > 0) {
|
|
389
|
+
/*if (existingPRs.length > 0) {
|
|
386
390
|
console.log(
|
|
387
391
|
`❌ Found ${existingPRs.length} existing pull request(s) with "Automated merge with changeset" description. Exiting to prevent conflicts.`,
|
|
388
392
|
);
|
|
@@ -394,7 +398,7 @@ async function mergeAll(verbose = false) {
|
|
|
394
398
|
});
|
|
395
399
|
}
|
|
396
400
|
process.exit(1);
|
|
397
|
-
}
|
|
401
|
+
}*/
|
|
398
402
|
|
|
399
403
|
if (verbose)
|
|
400
404
|
console.log('✅ No existing automated merge PRs found. Proceeding...');
|
|
@@ -428,7 +432,12 @@ async function mergeAll(verbose = false) {
|
|
|
428
432
|
verbose,
|
|
429
433
|
);
|
|
430
434
|
|
|
431
|
-
if (
|
|
435
|
+
if (
|
|
436
|
+
branchResult.success &&
|
|
437
|
+
branchResult.summary.successes > 0 &&
|
|
438
|
+
i < config.mergeBranches.length - 1
|
|
439
|
+
) {
|
|
440
|
+
console.log('Pausing before next merge');
|
|
432
441
|
await new Promise((res) => setTimeout(res, 90000));
|
|
433
442
|
}
|
|
434
443
|
|
package/src/merge/cli-merge.js
CHANGED
|
@@ -229,7 +229,6 @@ function mergeIntoTarget(
|
|
|
229
229
|
|
|
230
230
|
// Delete remote merge branch
|
|
231
231
|
try {
|
|
232
|
-
console.log('About to delete remote branch');
|
|
233
232
|
execSync(`git push origin --delete ${mergeBranchName}`, {
|
|
234
233
|
stdio: 'pipe',
|
|
235
234
|
});
|
|
@@ -318,9 +317,10 @@ function checkForUncommittedChangesets(sourceBranch, verbose = false) {
|
|
|
318
317
|
).trim();
|
|
319
318
|
|
|
320
319
|
if (changesetFiles) {
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
console.log(
|
|
321
|
+
`❌ Cannot merge a branch where version has not been bumped. Found changesets in ${sourceBranch}`,
|
|
323
322
|
);
|
|
323
|
+
process.exit(5);
|
|
324
324
|
}
|
|
325
325
|
} catch (error) {
|
|
326
326
|
if (error.message.includes('Cannot merge')) {
|