google-github-actions/run-gemini-cli

A GitHub Action invoking the Gemini CLI.

What it solves

run-gemini-cli is a GitHub Action that integrates the Gemini CLI into development workflows. It automates routine coding tasks and provides an on-demand AI collaborator directly within GitHub repositories, reducing the manual effort required for code reviews, issue triaging, and general code analysis.

How it works

The action installs and runs the Gemini CLI within a GitHub Actions runner. It can be triggered by specific GitHub events (like opening an issue or PR) or manually via comments in issues and pull requests using the @gemini-cli handle. It leverages Gemini models' tool-calling capabilities to interact with other tools like the GitHub CLI (gh) and can be customized via a GEMINI.md file in the repository to provide project-specific context.

Who it’s for

Developers and maintainers of GitHub repositories who want to automate their maintenance tasks using Gemini AI, specifically for PR reviews, issue triage, and conversational AI assistance within their project's context.

Highlights

  • Automated Workflows: Pre-built workflows for automatic pull request reviews and issue triaging.
  • Collaborative AI: Ability to trigger AI assistance on-demand via @gemini-cli mentions in comments.
  • Tool Integration: Uses tool-calling to interact with the GitHub CLI for repository management.
  • Customizable Context: Supports a GEMINI.md file for repository-specific instructions and coding conventions.
  • Flexible Authentication: Supports Gemini API keys, Google Cloud Workload Identity Federation, and custom GitHub Apps.

Related

  • Project
  • Project
  • Project
  • Project
  • Project