Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions scripts/ci/opencode_review_normalize_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ def changed_files_from_evidence(text: str) -> list[str]:
line = raw_line.strip()
if not line or line.startswith("#"):
continue
line = re.sub(r"^[-*+]\s+", "", line)
parts = line.split("\t")
path = parts[-1].strip()
if not path or path.startswith("["):
Expand Down
12 changes: 12 additions & 0 deletions tests/test_opencode_review_normalize_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,18 @@ def test_approval_repair_evidence_helpers_cover_edge_cases(tmp_path, monkeypatch
"opencode.jsonc",
"README.md",
]
assert norm.changed_files_from_evidence(
"""\
## Changed files

- .jules/sentinel.md
- frontend/src/components/EmailDetail.test.tsx
- [tree truncated after 5 paths]
"""
) == [
".jules/sentinel.md",
"frontend/src/components/EmailDetail.test.tsx",
]

summary = norm.build_approval_repair_summary(
"No blockers were found.",
Expand Down
Loading