Commit graph

2 commits

Author SHA1 Message Date
google-labs-jules[bot]
afeaaa0c39 Bolt: optimize PR review with bulk git metadata
This commit optimizes `scripts/review_pull_requests.py` by implementing bulk
metadata retrieval for Git branches.

Key improvements:
- Reduced subprocess calls from O(N) to O(1) for branch metadata (ahead/behind,
  last commit date, subject) using `git for-each-ref`.
- Implemented `get_git_version()` for safe usage of the `%(ahead-behind)` atom
  (introduced in Git 2.41).
- Added a `BRANCH_METADATA_CACHE` to eliminate redundant `git log` calls.
- Maintained full compatibility with older Git versions via a robust fallback path.
- Preserved output parity with the original script.

Performance impact:
- Execution time reduced from ~2.3s to ~0.56s (~76% improvement) in an
  environment with 315 remote branches.
2026-02-25 18:15:14 +00:00
Huawei-Window-Techno
365881c76a feat: Add pull request review script and comprehensive report - Created review_pull_requests.py to analyze all PRs - Generated Pull Request Review Report with 23 open PRs analysis - Identified 20 performance optimization PRs ready for review - Documented 5 draft PRs and 2 WIP feature PRs - Added recommendations for PR consolidation and prioritization 2026-01-10 05:26:35 +07:00