From 6f539ca198aa29eed2c2039f2fb9a8ab1dc6f1ef Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 14:47:26 +0000 Subject: [PATCH 1/2] Initial plan From 21ad8411fc43866f65a84e506a73a06dc8f53751 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 8 Mar 2026 14:52:48 +0000 Subject: [PATCH 2/2] fix: only reset DB once before first repo in multi-repo fetch loops Co-authored-by: ghinks <5049078+ghinks@users.noreply.github.com> --- src/review_classification/cli/app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/review_classification/cli/app.py b/src/review_classification/cli/app.py index f9764bd..e6f554a 100644 --- a/src/review_classification/cli/app.py +++ b/src/review_classification/cli/app.py @@ -399,14 +399,16 @@ def fetch( default_collate_end=collate_end, ) + effective_reset = reset_db for target in targets: _fetch_single( target.name, target.collate_start, target.collate_end, - reset_db, + effective_reset, verbose, ) + effective_reset = False except (FileNotFoundError, ValueError) as e: typer.echo(f"Error: {e}", err=True) @@ -661,6 +663,7 @@ def fetch_and_classify( init_db() + effective_reset = reset_db for target in targets: session = get_session() try: @@ -681,9 +684,10 @@ def fetch_and_classify( target.name, target.collate_start, target.collate_end, - reset_db, + effective_reset, verbose, ) + effective_reset = False successes: list[str] = [] failures: list[str] = []