@docupace/pipeline 1.0.81-alpha.4 → 1.0.81-alpha.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.81-alpha.4",
3
+ "version": "1.0.81-alpha.6",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "bin": {
@@ -66,6 +66,17 @@ function attemptMerge(sourceBranch, targetBranch, verbose = false) {
66
66
  console.log(`🔀 Merging ${sourceBranch} into current branch`);
67
67
  }
68
68
 
69
+ // Fetch and pull the source branch
70
+ try {
71
+ execSync(`git fetch origin ${sourceBranch}`, {
72
+ stdio: verbose ? 'inherit' : 'pipe',
73
+ });
74
+ if (verbose) console.log(`📥 Fetched source branch: ${sourceBranch}`);
75
+ } catch (error) {
76
+ if (verbose)
77
+ console.log(`⚠️ Failed to fetch ${sourceBranch}: ${error.message}`);
78
+ }
79
+
69
80
  try {
70
81
  execSync(`git merge --no-commit --no-ff origin/${sourceBranch}`, {
71
82
  stdio: 'pipe',
@@ -302,6 +313,11 @@ function checkForUncommittedChangesets(sourceBranch, verbose = false) {
302
313
 
303
314
  try {
304
315
  // Checkout source branch
316
+
317
+ execSync(`git fetch origin ${sourceBranch}`, {
318
+ stdio: verbose ? 'inherit' : 'pipe',
319
+ });
320
+
305
321
  execSync(`git checkout ${sourceBranch}`, {
306
322
  stdio: 'pipe',
307
323
  });