Files
gemini-cli/.github
gemini-cli[bot] 3c3746644d # BT-36: Optimize Lifecycle Manager & Prune Backlog
## Description

This PR optimizes the `gemini-lifecycle-manager.cjs` script to handle high-volume issue backlogs and implements a more aggressive pruning policy to address the 2000+ open issues.

### Changes:
- **Fixed Pagination Bottleneck**: Switched from a single search page (100 items) to `github.paginate`, ensuring all stale items are processed in a single run.
- **Tighter Issue Stale Policy**: Reduced `STALE_DAYS` from 60 to 30 and `CLOSE_DAYS` from 14 to 7 for issues. This aligns with the need for aggressive pruning in a high-arrival-rate environment.
- **Explicit Scoping**: Added `is:issue` to stale marking/closing queries to prevent unintended overlaps and ensure clear automation intent.
- **Improved Resilience**: Added per-item error handling to prevent a single API failure from stopping the entire workflow.

## Expected Impact
- **Backlog Reduction**: Timely closure of hundreds of "zombie" issues currently blocked by the 100-item limit and 60-day threshold.
- **Improved Productivity**: Reduced issue-to-maintainer ratio, allowing maintainers to focus on high-signal reports.
- **Systemic Health**: More accurate metrics as "ghost" issues are removed from the active count.
2026-05-04 23:59:05 +00:00
..