Fix generated docs drift detection output

This commit is contained in:
Simon Kim 2026-03-21 02:56:54 +09:00
parent 7f6d90d2d4
commit b8961a41d8

View File

@ -17,6 +17,19 @@ const result = await writeConfigDocBaselineStatefile({
check: checkOnly,
});
if (!checkOnly && result.changed) {
const { execFileSync } = await import("node:child_process");
const status = execFileSync(
"git",
["-C", repoRoot, "status", "--porcelain", "--untracked-files=normal", "--", "docs/.generated"],
{ encoding: "utf8" },
);
if (status.trim()) {
console.log(`Generated docs drift paths:
${status.trimEnd()}`);
}
}
if (checkOnly) {
if (!result.changed) {
console.log(