Files
renovate/tools/agents/hooks/stop-check.ts
2026-07-15 15:57:19 +00:00

16 lines
399 B
TypeScript

import { exec } from './utils/exec.ts';
import { getChangedFiles } from './utils/git.ts';
import { block } from './utils/output.ts';
const changedFiles = await getChangedFiles();
if (changedFiles.length > 0) {
try {
await exec('pnpm', ['check', '--all', ...changedFiles]);
} catch {
block(
'pnpm check --all failed — the issues must be resolved before finishing',
);
}
}