Commit graph

2 commits

Author SHA1 Message Date
google-labs-jules[bot]
b788edea17 Bolt: optimize branch metadata retrieval in review script
Optimized scripts/review_pull_requests.py by implementing bulk metadata
retrieval using git for-each-ref and the %(ahead-behind:main) atom.

Key changes:
- Reduced subprocess calls from O(N) to O(1) for branch status and metadata.
- Implemented global BRANCH_METADATA_CACHE for efficient retrieval.
- Added git version check for 2.41+ (ahead-behind support).
- Filtered out generic 'origin' and 'HEAD' refs from the branch list.
- Added integration test for the PR reviewer in scripts/test_automation.py.

Performance impact:
- Reduced execution time by ~40% in the current environment (~0.64s to ~0.38s).
- Significant scalability improvement for repositories with many branches.
2026-02-24 20:03:38 +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