{"name":"run-gemini-cli: Automate AI-Powered Tasks with Gemini in GitHub Actions","description":"The `run-gemini-cli` GitHub Action integrates the Gemini CLI into your development workflow, enabling AI-powered automation for critical coding tasks. It allows you to perform pull request reviews, triage issues, and conduct code analysis using Gemini conversationally within your GitHub repositories. This action acts as both an autonomous agent and an on-demand collaborator, streamlining various development processes.","github":"https://github.com/google-github-actions/run-gemini-cli","url":"https://osrepos.com/repo/google-github-actions-run-gemini-cli","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/google-github-actions-run-gemini-cli","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/google-github-actions-run-gemini-cli.md","json":"https://osrepos.com/repo/google-github-actions-run-gemini-cli.json","topics":["GitHub Actions","Gemini AI","AI Automation","DevOps","Google Cloud Platform","Code Review","Issue Triage","Shell Scripting"],"keywords":["GitHub Actions","Gemini AI","AI Automation","DevOps","Google Cloud Platform","Code Review","Issue Triage","Shell Scripting"],"stars":null,"summary":"The `run-gemini-cli` GitHub Action integrates the Gemini CLI into your development workflow, enabling AI-powered automation for critical coding tasks. It allows you to perform pull request reviews, triage issues, and conduct code analysis using Gemini conversationally within your GitHub repositories. This action acts as both an autonomous agent and an on-demand collaborator, streamlining various development processes.","content":"## Introduction\n\nThe `run-gemini-cli` GitHub Action, developed by `google-github-actions`, provides a seamless integration of the powerful Gemini CLI into your development workflows. This action empowers you to leverage Google's Gemini AI for a wide array of automated and on-demand coding tasks directly within your GitHub repositories. It functions as both an autonomous agent for routine tasks and an immediate collaborator for specific requests, significantly enhancing productivity and code quality. Use it for automated pull request reviews, efficient issue triage, in-depth code analysis, and even code modification.\n\n## Installation\n\nGetting started with `run-gemini-cli` is straightforward. Follow these quick steps to integrate Gemini into your repository:\n\n1.  **Get a Gemini API Key**: Obtain your API key from [Google AI Studio](https://aistudio.google.com/apikey){:target=\"_blank\"}.\n2.  **Add it as a GitHub Secret**: Store your API key as a repository secret named `GEMINI_API_KEY` in your repository's **Settings > Secrets and variables > Actions**.\n3.  **Update your .gitignore**: Add the following entries to prevent sensitive files from being committed:\n    gitignore\n    # gemini-cli settings\n    .gemini/\n\n    # GitHub App credentials\n    gha-creds-*.json\n    \n4.  **Choose a Workflow**:\n    *   **Recommended**: Use the Gemini CLI setup command in your terminal:\n        shell\n        gemini\n        /setup-github\n        \n    *   **Manual**: Copy pre-built workflows from the `examples/workflows` directory to your `.github/workflows` directory, including `gemini-dispatch.yml`.\n5.  **Try it out!**: Once set up, you can immediately test its capabilities.\n\n## Examples\n\n`run-gemini-cli` offers versatile workflows to automate and assist with various development tasks:\n\n*   **Pull Request Review**:\n    *   Automatically review pull requests upon opening.\n    *   Manually trigger a review by commenting `@gemini-cli /review` on an existing pull request.\n*   **Issue Triage**:\n    *   Automatically triage new issues.\n    *   Manually trigger triage by commenting `@gemini-cli /triage` on existing issues.\n*   **General AI Assistance**:\n    *   Mention `@gemini-cli` followed by your request in any issue or pull request comment.\n    *   Examples:\n        *   `@gemini-cli explain this code change`\n        *   `@gemini-cli suggest improvements for this function`\n        *   `@gemini-cli help me debug this error`\n        *   `@gemini-cli write unit tests for this component`\n\n## Why Use It\n\nThis GitHub Action brings powerful AI capabilities directly into your development lifecycle, offering several key advantages:\n\n*   **Automation**: Automate routine tasks by triggering workflows based on events like issue creation or on a schedule.\n*   **On-demand Collaboration**: Get instant AI assistance by mentioning `@gemini-cli` in comments, making it an invaluable on-demand collaborator.\n*   **Extensible with Tools**: Leverage Gemini models' tool-calling capabilities to interact with other CLIs, such as the GitHub CLI (`gh`).\n*   **Customizable**: Tailor Gemini's behavior to your project's specific needs by creating a `GEMINI.md` file in your repository, providing project-specific instructions and context.\n\n## Links\n\n*   **GitHub Repository**: [google-github-actions/run-gemini-cli](https://github.com/google-github-actions/run-gemini-cli){:target=\"_blank\"}\n*   **Gemini CLI**: [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli/){:target=\"_blank\"}\n*   **Google AI Studio**: [Get your API Key](https://aistudio.google.com/apikey){:target=\"_blank\"}","metrics":{"detailViews":5,"githubClicks":10},"dates":{"published":null,"modified":"2025-10-18T11:00:56.000Z"}}