GRM-53: refactor: enforce script separation and document import rules

This commit is contained in:
2026-06-22 06:32:17 +00:00
parent 8bde4cd12b
commit b8ab4f854b
11 changed files with 135 additions and 21 deletions
+5 -1
View File
@@ -154,7 +154,11 @@ def classify_changes(files: list[str]) -> dict[str, list[str]]:
def has_user_facing_changes(base: str, head: str) -> bool:
"""Check if any user-facing files changed between base and head."""
"""Check if any user-facing files changed between base and head.
Imported by ``scripts/ci/release.py`` to decide whether a release
is needed. This is a cross-CI import that requires ``PYTHONPATH=.``.
"""
files = get_changed_files(base, head)
return any(is_user_facing(f) for f in files)