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. */