Dax Raad 3 tygodni temu
rodzic
commit
4a4fc48ee8
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      script/beta.ts

+ 2 - 2
script/beta.ts

@@ -49,9 +49,9 @@ async function main() {
       continue
       continue
     }
     }
 
 
-    // Try to squash merge the PR directly
+    // Try to squash merge the PR directly (allow unrelated histories since beta starts fresh from dev)
     console.log(`  Attempting to merge PR #${pr.number}...`)
     console.log(`  Attempting to merge PR #${pr.number}...`)
-    const merge = await $`git merge --squash pr-${pr.number}`.nothrow()
+    const merge = await $`git merge --squash --allow-unrelated-histories pr-${pr.number}`.nothrow()
     if (merge.exitCode !== 0) {
     if (merge.exitCode !== 0) {
       console.log(`  Squash merge failed for PR #${pr.number}`)
       console.log(`  Squash merge failed for PR #${pr.number}`)
       console.log(`  Error: ${merge.stderr}`)
       console.log(`  Error: ${merge.stderr}`)