This page shows you how to set up Gemini Code Assist for GitHub, a Gemini-powered agent that automatically summarizes pull requests and provides in-depth code reviews.
Before you begin
To set up Gemini Code Assist for GitHub, make sure you do the following:
Have a GitHub organization or personal account.
Have one or more GitHub repositories that you want to enable Gemini Code Assist for GitHub on.
- If you don't have such a repository, you can create a fork of our sample repository to use.
Install Gemini Code Assist for GitHub
You can install Gemini Code Assist for GitHub by following these steps:
Go to the Gemini Code Assist app page.
Sign in to your GitHub account if you haven't already.
Click Install.
A prompt to install the Gemini Code Assist app for a user or organization is displayed.
When prompted to install the Gemini Code Assist app for a user or organization, select the organization you intend to use it on.
After you've installed the Gemini Code Assist app for your GitHub organization, you're prompted to select the repositories to enable the Code Review integration.
You're redirected to the Admin Console for the Gemini Code Assist app.
Login with your GitHub account.
Select a GitHub organization or personal account from the drop-down menu.
Review and accept the Google Terms of Service, Generative AI Prohibited Use Policy and Privacy Policy, and then click Complete setup.
Gemini Code Assist is added to the pull requests within your selected repositories.
After creation, Gemini Code Assist provides suggestions to your
code review every time the pull request author or other human reviewers add
comments with the /gemini
tag on the pull request.
Gemini Code Assist is now active for all the pull requests within your selected repositories!