Skip to content

Conversation

@Han5991
Copy link
Contributor

@Han5991 Han5991 commented Jul 5, 2025

Add a condition to execute the PR triage workflow only when the repository is 'google-gemini/gemini-cli'. This prevents unintended runs in other contexts, improving workflow accuracy.

TLDR

What: Optimize GitHub Actions PR triage scheduler to reduce execution frequency and prevent unnecessary runs in fork repositories.

Why: Current 15-minute schedule causes excessive workflow executions (96/day) in both main repo and every fork, creating ecosystem-wide resource waste and workflow noise.

Impact: Eliminates fork pollution, reduces main repo executions by 60-80%, and prevents thousands of unnecessary workflow runs across the entire fork ecosystem.

The Problem

  • Fork pollution: The scheduler runs in every fork of the repository, creating unnecessary load across the GitHub ecosystem
  • Resource waste: Runs even when there are no new PRs or changes to existing PRs
  • API rate limiting risk: Frequent GitHub API calls may hit rate limits unnecessarily
  • Workflow noise: Creates excessive workflow run history that's hard to navigate

Reviewer Test Plan

Testing Matrix

🍏 🪟 🐧
npm run
npx
Docker
Podman - -
Seatbelt - -

Linked issues / bugs

Add a condition to execute the PR triage workflow only when the repository is 'google-gemini/gemini-cli'. This prevents unintended runs in other contexts, improving workflow accuracy.
@Han5991 Han5991 requested a review from a team as a code owner July 5, 2025 07:25
@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

This ensures the workflow only runs for the 'google-gemini/gemini-cli' repository. Prevents unnecessary executions in unintended repositories, optimizing workflow behavior.
@gemini-cli gemini-cli bot added kind/enhancement priority/p2 Important but can be addressed in a future release. labels Jul 5, 2025
@jackwotherspoon
Copy link
Collaborator

Hi @Han5991 This has already been added in another open PR 😄 #3093

Really appreciate this but going to close in respect of the PR that was opened first 👍

@Han5991 Han5991 deleted the fix/optimize-pr-triage-scheduler branch July 5, 2025 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority/p2 Important but can be addressed in a future release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize GitHub Actions PR Triage Scheduler Frequency

3 participants