Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions HeadySystems_v13/scripts/docs/check_drift.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ def main() -> int:
return 1

changed = [line.strip() for line in diff.splitlines() if line.strip()]
watched_changes = [path for path in changed if any(path.startswith(prefix) for prefix in WATCH_PATHS)]
if watched_changes and "docs/" not in " ".join(changed):
watched_prefixes = tuple(WATCH_PATHS)
watched_changes = [path for path in changed if path.startswith(watched_prefixes)]
if watched_changes and not any("docs/" in path for path in changed):
print("Docs drift detected: operational changes without docs updates.")
return 1

Expand Down