Skip to content

🎥 Make videos programmatically with React

Update pr.ts

Jonny Burger00ee36b89488
diff --git a/packages/it-tests/src/scripts/pr.ts b/packages/it-tests/src/scripts/pr.ts
index ebc3130c8e..df6bc8b62f 100644
--- a/packages/it-tests/src/scripts/pr.ts
+++ b/packages/it-tests/src/scripts/pr.ts
@@ -34,4 +34,13 @@ const indexOfDiff = bodyIfThereIsOne.indexOf('\ndiff');
const body = bodyIfThereIsOne.slice(0, indexOfDiff).trim();
await $`git push origin HEAD`;
-await $`gh pr create --title "${goodPrTitle.message}" --body "${body}"`.nothrow();
+const output =
+ await $`gh pr create --title "${goodPrTitle.message}" --body "${body}"`.nothrow();
+
+const prLine = new TextDecoder()
+ .decode(output.stderr)
+ .trim()
+ .split('\n')
+ .find((line) => line.startsWith('https://'));
+
+await $`open ${prLine}`;