mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
const fs = require("node:fs");
|
|
const input = JSON.parse(fs.readFileSync("/dev/stdin", "utf8"));
|
|
const cmd = input.tool_input?.command || "";
|
|
|
|
if (/--no-verify/.test(cmd)) {
|
|
console.log(
|
|
"BLOCKED: --no-verify bypasses git hooks. Fix the underlying issue instead of skipping checks.",
|
|
);
|
|
process.exit(2);
|
|
}
|