From efe64e03d939ea2fd93ef5309c44ae4d57eba287 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Sat, 28 Feb 2026 16:18:53 +0000 Subject: [PATCH] Add `isTruthy` helper --- pr-checks/sync.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pr-checks/sync.ts b/pr-checks/sync.ts index 1b98cefbe..038bc51f3 100755 --- a/pr-checks/sync.ts +++ b/pr-checks/sync.ts @@ -112,6 +112,13 @@ function writeYaml(filePath: string, data: any): void { fs.writeFileSync(filePath, stripTrailingWhitespace(header + yamlStr), "utf8"); } +function isTruthy(value: string | boolean | undefined): boolean { + if (typeof value === "string") { + return value.toLowerCase() === "true"; + } + return Boolean(value); +} + /** * Strip trailing whitespace from each line. */