From 2eec1d493dbfce0bd346dc2878b2ca3aea5be6d9 Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 3 Apr 2025 11:31:45 +0100 Subject: [PATCH] feat(post-process): skip empty action item files - Skip creating output files when no action items are found\n- Add informative message when skipping empty files --- src/post_process.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/post_process.py b/src/post_process.py index 7198188..33af6e9 100644 --- a/src/post_process.py +++ b/src/post_process.py @@ -96,6 +96,12 @@ def main(): # Extract and format action items items = extract_action_items(content) + + # Skip if no items found + if not items: + print(f" No action items found in {action_file.name}") + continue + formatted_content = format_action_items(items, action_file.stem) # Save formatted content in TODOs directory