Add script for validating PR title (#4050)

This commit is contained in:
Bart Louwers
2026-01-14 18:54:02 +01:00
committed by GitHub
parent e0dbd33f00
commit a4cf4d3ffa
14 changed files with 172 additions and 79 deletions

View File

@@ -13,7 +13,7 @@ import { join } from "path";
*/
async function getFilePaths(baseDir, predicate) {
const entries = (await fs.readdir(baseDir, { withFileTypes: true }))
return entries.map((entry) => join(entry.path, entry.name)).filter(predicate);
return entries.map((entry) => join(baseDir, entry.name)).filter(predicate);
}
// documentation files that will be updated and source files that contain examples