Merged
Conversation
Collaborator
Author
|
@gemini-cli /review |
Merged
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new, modular Gemini CLI automation system for GitHub, enabling secure, role-based AI workflows for pull request review, issue triage, and general invocation. It adds a central dispatch workflow that parses user commands and routes them to the appropriate specialized workflow, each governed by strict security and operational protocols.
The most important changes are:
1. Gemini Dispatch Workflow and Command Routing
.github/workflows/gemini-dispatch.yml, a new central workflow that listens for comments or reviews invoking@gemini-cli. It parses the command (/review,/triage, or general invocation), checks author permissions, acknowledges the request, and dispatches to the correct sub-workflow (gemini-review,gemini-triage, orgemini-invoke). If the command is unrecognized or fails, it posts a fallback error message.2. Specialized Gemini Command Prompts and Protocols
.github/commands/gemini-review.toml: Defines the persona, security constraints, and detailed review protocol for the AI code review agent, including severity guidelines, comment formatting, and strict boundaries on what the agent can and cannot do..github/commands/gemini-invoke.toml: Defines the persona, workflow, and security constraints for general-purpose AI development tasks, emphasizing plan-approve-execute-report cycles and safe handling of untrusted input..github/commands/gemini-triage.toml: Defines a specialized prompt for issue triage, focusing on label selection from a provided list and secure shell command usage.3. Security and Operational Safeguards
These changes collectively establish a robust, extensible, and secure foundation for AI-driven automation in GitHub repositories.