@docupace/pipeline 1.0.70 → 1.0.72
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 +27 -18
- package/src/merge/cli-merge.js +1 -1
package/package.json
CHANGED
|
@@ -222,6 +222,9 @@ async function runPreparePhase(
|
|
|
222
222
|
case 3:
|
|
223
223
|
console.log(`⚠️ ${configName}: Build failed`);
|
|
224
224
|
break;
|
|
225
|
+
case 4:
|
|
226
|
+
console.log(`✅ ${configName}: No Changes`);
|
|
227
|
+
break;
|
|
225
228
|
default:
|
|
226
229
|
console.log(
|
|
227
230
|
`❌ ${configName}: Unknown error (exit code: ${result.exitCode})`,
|
|
@@ -239,7 +242,9 @@ async function runFollowUpPhase(prepareResults, verbose = false) {
|
|
|
239
242
|
console.log(`\n🔄 Phase 2: Running follow-up based on prepare phase results`);
|
|
240
243
|
|
|
241
244
|
// Check if all repositories passed
|
|
242
|
-
const allPassed = prepareResults.every(
|
|
245
|
+
const allPassed = prepareResults.every(
|
|
246
|
+
(r) => r.exitCode === 0 || r.exitCode === 4,
|
|
247
|
+
);
|
|
243
248
|
|
|
244
249
|
for (let i = 0; i < prepareResults.length; i++) {
|
|
245
250
|
const result = prepareResults[i];
|
|
@@ -281,24 +286,26 @@ async function runFollowUpPhase(prepareResults, verbose = false) {
|
|
|
281
286
|
|
|
282
287
|
console.log(` Action: ${action}`);
|
|
283
288
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
if (result.exitCode !== 4) {
|
|
290
|
+
const followUpResult = runMergeCommand(
|
|
291
|
+
result.repoPath,
|
|
292
|
+
result.fromBranch,
|
|
293
|
+
result.toBranch,
|
|
294
|
+
result.buildScript,
|
|
295
|
+
flags,
|
|
296
|
+
verbose,
|
|
297
|
+
);
|
|
292
298
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
299
|
+
// Update the result with follow-up information
|
|
300
|
+
result.followUpExitCode = followUpResult.exitCode;
|
|
301
|
+
result.followUpError = followUpResult.error;
|
|
302
|
+
result.followUpAction = action;
|
|
297
303
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
304
|
+
if (followUpResult.exitCode === 0) {
|
|
305
|
+
console.log(`✅ ${result.configName}: ${action} completed`);
|
|
306
|
+
} else {
|
|
307
|
+
console.log(`❌ ${result.configName}: ${action} failed`);
|
|
308
|
+
}
|
|
302
309
|
}
|
|
303
310
|
}
|
|
304
311
|
|
|
@@ -328,7 +335,9 @@ async function processMergeBranch(
|
|
|
328
335
|
const finalResults = await runFollowUpPhase(prepareResults, verbose);
|
|
329
336
|
|
|
330
337
|
// Summary
|
|
331
|
-
const allPassed = prepareResults.every(
|
|
338
|
+
const allPassed = prepareResults.every(
|
|
339
|
+
(r) => r.exitCode === 0 || r.exitCode === 4,
|
|
340
|
+
);
|
|
332
341
|
const mergeFailures = prepareResults.filter((r) => r.exitCode === 2);
|
|
333
342
|
const buildFailures = prepareResults.filter((r) => r.exitCode === 3);
|
|
334
343
|
const successes = prepareResults.filter((r) => r.exitCode === 0);
|
package/src/merge/cli-merge.js
CHANGED
|
@@ -327,7 +327,7 @@ export function setupMerge(program) {
|
|
|
327
327
|
console.log('✅ No changes to merge');
|
|
328
328
|
execSync(`git checkout ${targetBranch}`, { stdio: 'pipe' });
|
|
329
329
|
execSync(`git branch -d ${mergeBranchName}`, { stdio: 'pipe' });
|
|
330
|
-
|
|
330
|
+
process.exit(4);
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
// 4. If conflicts, try auto-resolve
|