Skip to content

chore(ci): optimize gemini workflows and remove automatic triage#76

Merged
utkarsh232005 merged 1 commit into
KDM-cli:mainfrom
utkarsh232005:chore/optimize-gemini-workflows
May 18, 2026
Merged

chore(ci): optimize gemini workflows and remove automatic triage#76
utkarsh232005 merged 1 commit into
KDM-cli:mainfrom
utkarsh232005:chore/optimize-gemini-workflows

Conversation

@utkarsh232005
Copy link
Copy Markdown
Member

@utkarsh232005 utkarsh232005 commented May 18, 2026

This PR removes scheduled runs and automatic triage triggers from Gemini workflows to save GitHub Action runtime minutes. Triage can still be triggered manually or via comment commands.

Summary by CodeRabbit

  • Chores
    • Modified AI workflow triggers: Issue triage now requires an explicit comment command instead of triggering automatically on issue creation. Scheduled triage workflow changed to manual-only trigger, removing automated hourly execution.

Review Change Stack

Copilot AI review requested due to automatic review settings May 18, 2026 09:06
@github-actions github-actions Bot added the ci/cd label May 18, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 18, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'pre_merge_checks'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b3ad6ee8-b4f3-4278-82a8-dfa8cac3690b

📥 Commits

Reviewing files that changed from the base of the PR and between 527feca and d82a7a6.

📒 Files selected for processing (2)
  • .github/workflows/gemini-dispatch.yml
  • .github/workflows/gemini-scheduled-triage.yml
💤 Files with no reviewable changes (2)
  • .github/workflows/gemini-dispatch.yml
  • .github/workflows/gemini-scheduled-triage.yml

📝 Walkthrough

Walkthrough

The PR modifies two GitHub Actions workflows to update trigger configurations and command routing. gemini-dispatch now listens for issue_comment created events instead of issues opened/reopened, and removes hard-coded triage command mapping in favor of command text parsing. gemini-scheduled-triage eliminates automated cron and file-watch triggers, leaving only manual dispatch.

Changes

Workflow Automation and Command Routing

Layer / File(s) Summary
Gemini Dispatch event listener and command routing
.github/workflows/gemini-dispatch.yml
The workflow event trigger switches from issues opened/reopened to issue_comment created. The command-extraction logic removes special-case triage routing for issue events, instead parsing @gemini-cli directives from incoming comment text.
Gemini Scheduled Triage trigger mode
.github/workflows/gemini-scheduled-triage.yml
All automated triggers (hourly schedule, pull_request, and push filters) are removed; the workflow now executes only when manually triggered via workflow_dispatch.

Possibly Related PRs

  • KDM-cli/kdm-cli#45: Both PRs directly modify the same GitHub Actions workflows (gemini-dispatch triggers and gemini-scheduled-triage automation).

Suggested Labels

ci/cd

Estimated Code Review Effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🤖 Commands once flowed from issue states,
Now comments carry gemini's weight.
Scheduled runs bow to manual hand,
Dispatch and logic shake and brand—
A quieter, cleaner, command-first plan. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main changes: removing automatic triage triggers and optimizing Gemini workflows to reduce GitHub Actions runtime costs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes automatic Gemini triage triggers (scheduled cron, push/PR path triggers, and issue-open events) to reduce GitHub Actions usage. Manual dispatch and comment-based commands remain available.

Changes:

  • Strip schedule, pull_request, and push triggers from gemini-scheduled-triage.yml, leaving only workflow_dispatch.
  • Remove issues (opened/reopened) trigger from gemini-dispatch.yml.
  • Remove the dispatcher branch that maps issues.opened/issues.reopened to the triage command.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/gemini-scheduled-triage.yml Removes hourly cron and push/PR self-test triggers, leaving only manual dispatch.
.github/workflows/gemini-dispatch.yml Removes issues event trigger and the corresponding triage command mapping in the dispatcher script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@utkarsh232005 utkarsh232005 merged commit fd8dc69 into KDM-cli:main May 18, 2026
14 checks passed
@utkarsh232005 utkarsh232005 deleted the chore/optimize-gemini-workflows branch May 18, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants