You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test the Absolute-Path Translation in the Unread-Diff-File Check #2862
Found while reviewing the fix for #2830. unread_diff_files in .github/actions/prose-gate/prose_lint.py translates each requested path into a repository-relative key with repo_key. Replacing that translation with the cwd-relative rel(Path(p)) survives every test in the seven diff-related classes, although that is the bug the helper's docstring says it prevents: an absolute path argument empties the unread list.
Failure scenario: prose_lint.py --diff BASE /abs/repo/scripts, where the change sits under scripts/ and discovery matches nothing. Under the mutant this exits 0 where it should exit 2.
Fix shape: add a companion test in TestDiffScopeFloor that passes str(self.tmp / "scripts") (absolute, covering the changed file) and asserts exit 2, then confirm it fails with the mutant.
Activity
Isolate TestCli From the Working Directory and Test the Absolute-Path…