From 6601e9bbbad0e141bf0071b22e185abaf1a971f7 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 8 Sep 2022 22:36:34 +0800 Subject: [PATCH] Output --- extra/checkout-pr.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/extra/checkout-pr.js b/extra/checkout-pr.js index 3528e7d09..4b0933348 100644 --- a/extra/checkout-pr.js +++ b/extra/checkout-pr.js @@ -17,5 +17,12 @@ let branch = inputArray[1]; console.log("Checkout pr"); // Checkout the pr -childProcess.spawnSync("git", [ "remote", "add", name, `https://github.com/${name}/uptime-kuma` ]); -childProcess.spawnSync("git", [ "checkout", `name/${branch}`, "--force" ]); +let result = childProcess.spawnSync("git", [ "remote", "add", name, `https://github.com/${name}/uptime-kuma` ]); + +console.log(result.stdout); +console.error(result.stderr); + +result = childProcess.spawnSync("git", [ "checkout", `name/${branch}`, "--force" ]); + +console.log(result.stdout); +console.error(result.stderr);