Determinstically set up PR branch

This commit is contained in:
Colin McDonnell
2025-12-15 21:12:55 -08:00
parent 1d69f0f3e4
commit a19ae49224
6 changed files with 54 additions and 95 deletions
+2
View File
@@ -14,6 +14,7 @@ interface ShellOptions {
| "ucs2"
| "utf16le";
log?: boolean;
env?: Record<string, string>;
onError?: (result: { status: number; stdout: string; stderr: string }) => void;
}
@@ -36,6 +37,7 @@ export function $(cmd: string, args: string[], options?: ShellOptions): string {
stdio: ["ignore", "pipe", "pipe"],
encoding,
cwd: options?.cwd,
env: options?.env ? { ...process.env, ...options.env } : undefined,
});
const stdout = result.stdout ?? "";