mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 03:42:21 +08:00
Add checkout pr logic
This commit is contained in:
11
extra/checkout-pr.js
Normal file
11
extra/checkout-pr.js
Normal file
@@ -0,0 +1,11 @@
|
||||
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 ]);
|
Reference in New Issue
Block a user