You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
uptime-kuma/extra/checkout-pr.js

12 lines
363 B

const childProcess = require("child_process");
if (!process.env.UPTIME_KUMA_PRUPTIME_KUMA_PR) {
console.error("Please set a pull request number to the environment variable 'UPTIME_KUMA_PRUPTIME_KUMA_PR'");
process.exit(1);
}
console.log("Checkout pr");
// Checkout the pr
childProcess.spawnSync("gh", [ "pr", "checkout", process.env.UPTIME_KUMA_PR ]);