From eed12ce7497e5c4c14daac76bae070c60cdbb805 Mon Sep 17 00:00:00 2001 From: rob Date: Sat, 1 Nov 2025 14:22:36 -0300 Subject: [PATCH] fix: ignore comment blocks in discussion parsing --- automation/workflow.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/automation/workflow.py b/automation/workflow.py index 421a428..5a695cf 100644 --- a/automation/workflow.py +++ b/automation/workflow.py @@ -46,11 +46,21 @@ def extract_structured_basic(text: str) -> dict[str, list]: mentions: list[dict[str, str]] = [] timeline_data: dict[str, str] | None = None + in_comment = False + for line in text.splitlines(): participant, remainder = _extract_participant(line) stripped = line.strip() if not stripped: continue + if stripped.startswith(""): + in_comment = True + continue + if in_comment: + if stripped.endswith("-->"): + in_comment = False + continue if stripped.startswith("#"): continue analysis = remainder.strip() if participant else stripped