Skip to content

Setup Gemini CLI Code Review#125

Draft
google-labs-jules[bot] wants to merge 6 commits into
masterfrom
setup-gemini-code-review-10543761285457033845
Draft

Setup Gemini CLI Code Review#125
google-labs-jules[bot] wants to merge 6 commits into
masterfrom
setup-gemini-code-review-10543761285457033845

Conversation

@google-labs-jules
Copy link
Copy Markdown

Setup automatic Gemini-based code review and security analysis for Pull Requests using GitHub Actions.


PR created automatically by Jules for task 10543761285457033845 started by @minibikini

Adds a GitHub Actions workflow `.github/workflows/gemini-review.yml` that triggers on pull requests.
It configures `run-gemini-cli` to perform two types of reviews:
1. Security analysis using the security extension.
2. Code quality review using the code-review extension with a custom prompt tailored for Elixir.

The workflow uses the GitHub MCP server to allow the AI to read PR diffs and post review comments directly.

Updates `.gitignore` to exclude local Gemini CLI configuration files.
@google-labs-jules
Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

google-labs-jules Bot and others added 5 commits December 18, 2025 18:55
…ation

Updates the Gemini Code Review workflow to correctly pass the GITHUB_PERSONAL_ACCESS_TOKEN to the Docker container running the GitHub MCP server. This fixes an authentication issue where the token was not being expanded correctly in the settings JSON.

Also removes the redundant environment variable configuration from the settings JSON, relying on standard environment inheritance for the Docker command.
Adds a GEMINI.md file to the repository root. This file provides specific context for the Gemini CLI agent, describing the project as an Elixir library for natural language detection, outlining coding standards (credo, mix format), and giving guidelines for constructive code reviews. This should improve the relevance and quality of the automated reviews.
Pins the Gemini CLI version to 0.20.2 to avoid deprecation warnings from newer versions (0.21.x) that were causing the GitHub Action to fail JSON parsing.
Also switches the model to `gemini-1.5-flash` to ensure compatibility with the user's free-tier API key and to improve response speed.
Explicitly sets the Gemini CLI version to 0.15.0 in the GitHub Action workflow.
Newer versions of the CLI (0.20+) print a deprecation warning for the `--prompt` flag to STDERR, which the GitHub Action captures and fails to parse as JSON, causing the workflow to crash. Downgrading restores compatibility with the `run-gemini-cli` action.

Also configures the model to `gemini-1.5-flash` for efficiency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant