Skip to content

[codex] Skip empty org repos during incremental fetch - #61

Merged
ghinks merged 1 commit into
mainfrom
fix/skip-empty-org-incremental-repos
Jun 14, 2026
Merged

[codex] Skip empty org repos during incremental fetch#61
ghinks merged 1 commit into
mainfrom
fix/skip-empty-org-incremental-repos

Conversation

@ghinks

@ghinks ghinks commented May 29, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes org-wide incremental fetches so newly discovered repositories without existing database history are skipped instead of aborting the whole fetch run.

Changes

CLI

  • src/review_classification/cli/app.py: marks org-expanded repository targets and allows incremental fetches to skip those targets when no prior PR date exists.
  • src/review_classification/cli/config.py: carries the org-source flag through RepoConfig resolution.

Tests

  • tests/cli/test_fetch.py: covers skipping empty org repos during incremental fetch while preserving the existing error behavior for explicit single-repo incremental fetches.

Testing

  • UV_CACHE_DIR=/home/ghinks/dev/review-classification/.uv-cache uv run pytest tests/cli/test_fetch.py -q
  • UV_CACHE_DIR=/home/ghinks/dev/review-classification/.uv-cache uv run ruff check src/review_classification/cli/app.py src/review_classification/cli/config.py tests/cli/test_fetch.py
  • UV_CACHE_DIR=/home/ghinks/dev/review-classification/.uv-cache uv run mypy src/review_classification/cli/app.py src/review_classification/cli/config.py tests/cli/test_fetch.py
  • Pre-commit hooks passed during commit.

@ghinks
ghinks marked this pull request as ready for review June 14, 2026 12:27
@ghinks
ghinks merged commit 6dc0f7e into main Jun 14, 2026
1 check passed
@ghinks
ghinks deleted the fix/skip-empty-org-incremental-repos branch June 14, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant