Files
gemini-cli/.github
gemini-cli[bot] 6bb4a497aa # Robust Scale-Safe Lifecycle Consolidation
This PR consolidates fragmented repository maintenance workflows into a single, scale-safe lifecycle manager and optimizes existing triage queries.

## Changes

### 1. Scale-Safe Lifecycle Management (`gemini-lifecycle-manager.yml`)
- Refactored `processItems` to use `github.rest.search.issuesAndPullRequests` with a fixed `per_page: 100` and **no pagination**.
- This ensures that even with a large backlog (e.g., 5,000+ issues), the workflow only processes a manageable batch of items per daily run, preventing N+1 query failures and hitting GitHub API rate limits.
- The consolidated manager now handles:
    - **No-Response Closure**: Closes items with `status/need-information` after 14 days of inactivity.
    - **Actor-Aware Label Removal**: Automatically removes `status/need-information` only when the contributor (author) responds, ignoring maintainer pings.
    - **Stale Management**: Marks items as stale after 60 days of inactivity and closes them after 14 additional days.
    - **PR Contribution Policy**: Implements a 2-stage policy for non-roadmap PRs (7-day nudge, 14-day closure).

### 2. Optimized Issue Triage (`gemini-scheduled-issue-triage.yml`)
- Updated search queries to exclude `status/bot-triaged` labels.
- This prevents redundant re-processing of issues that have already been analyzed by Gemini, saving API budget and compute time.

### 3. Workflow Consolidation
- Deleted 5 redundant legacy workflows:
    - `gemini-scheduled-stale-issue-closer.yml`
    - `gemini-scheduled-stale-pr-closer.yml`
    - `no-response.yml`
    - `stale.yml`
    - `pr-contribution-guidelines-notifier.yml`

## Impact
- **Stability**: Prevents workflow timeouts and rate-limiting on repositories with large backlogs.
- **Maintainability**: Centralizes lifecycle policies into a single, well-commented configuration.
- **Efficiency**: Reduces redundant triage processing and API calls.
- **Contributor Experience**: Provides clear, actor-aware feedback and graceful PR closure nudges.
2026-05-01 23:29:27 +00:00
..