@docupace/pipeline 1.0.81-alpha.2 → 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 +5 -4
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
|
@@ -234,8 +234,8 @@ function mergeIntoTarget(
|
|
|
234
234
|
});
|
|
235
235
|
if (verbose)
|
|
236
236
|
console.log(`🗑️ Deleted remote merge branch: ${mergeBranchName}`);
|
|
237
|
-
} catch {
|
|
238
|
-
|
|
237
|
+
} catch (e) {
|
|
238
|
+
console.error('Failed to delete remote branch', e);
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
if (verbose) console.log(`✅ Successfully merged into ${targetBranch}`);
|
|
@@ -317,9 +317,10 @@ function checkForUncommittedChangesets(sourceBranch, verbose = false) {
|
|
|
317
317
|
).trim();
|
|
318
318
|
|
|
319
319
|
if (changesetFiles) {
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
console.log(
|
|
321
|
+
`❌ Cannot merge a branch where version has not been bumped. Found changesets in ${sourceBranch}`,
|
|
322
322
|
);
|
|
323
|
+
process.exit(5);
|
|
323
324
|
}
|
|
324
325
|
} catch (error) {
|
|
325
326
|
if (error.message.includes('Cannot merge')) {
|