Guide for GitHub

Integrate the AI Code Review Agent into your GitHub workflow.

Speed up code reviews by configuring the AI Code Review Agent with your GitHub repositories. In this guide, you'll learn how to set up the Agent to receive automated code reviews that trigger whenever you create a pull request, as well as how to manually initiate reviews using available commands.

Video tutorial

Coming soon...

Installation and configuration steps

Follow the step-by-step instructions below to install the AI Code Review Agent using Bito Cloud:

Step 1: Log in to Bito

Log in to Bito Cloud and select a workspace to get started.

Step 2: Open the Code Review Agents setup

Navigate to the Code Review Agents setup page via the sidebar.

Step 3: Select your Git provider

Bito supports integration with the following Git providers:

  • GitHub

  • GitHub (Self-Managed)

  • GitLab

  • GitLab (Self-Managed)

  • Bitbucket

Since we are setting up the Agent for GitHub, select GitHub to proceed.

Step 4: Install the Bito app for GitHub

To enable pull request reviews, you need to install and authorize the Bito’s AI Code Review Agent app.

Click the Install Bito App for GitHub button. This will redirect you to GitHub.

On GitHub, select where you want to install the app.

Grant Bito access to your repositories:

  • Choose All repositories to enable Bito for every repository in your account.

  • Or, select Only select repositories and pick specific repositories using the dropdown menu.

Click Install & Authorize to proceed. Once completed, you will be redirected to Bito.

Step 5: Enable AI Code Review Agent on repositories

After connecting Bito to your GitHub account, you need to enable the AI Code Review Agent for your repositories.

Click the Go to repository list button to view all repositories Bito can access in your GitHub account.

Use the toggles in the Code Review Status column to enable or disable the Agent for each repository.

Step 6: Automated and manual pull request reviews

Once a repository is enabled, you can invoke the AI Code Review Agent in the following ways:

  1. Automated code review: By default, the Agent automatically reviews all new pull requests and provides detailed feedback.

  2. Manually trigger code review: To initiate a manual review, simply type /review in the comment box on the pull request and submit it. This action will start the code review process.

The AI-generated code review feedback will be posted as comments directly within your pull request, making it seamless to view and address suggestions right where they matter most.

Step 7: Specialized commands for code reviews

Bito also offers specialized commands that are designed to provide detailed insights into specific areas of your source code, including security, performance, scalability, code structure, and optimization.

  • /review security: Analyzes code to identify security vulnerabilities and ensure secure coding practices.

  • /review performance: Evaluates code for performance issues, identifying slow or resource-heavy areas.

  • /review scalability: Assesses the code's ability to handle increased usage and scale effectively.

  • /review codeorg: Scans for readability and maintainability, promoting clear and efficient code organization.

  • /review codeoptimize: Identifies optimization opportunities to enhance code efficiency and reduce resource usage.

By default, the /review command generates inline comments, meaning that code suggestions are inserted directly beneath the code diffs in each file. This approach provides a clearer view of the exact lines requiring improvement. However, if you prefer a code review in a single post rather than separate inline comments under the diffs, you can include the optional parameter: /review #inline_comment=False

For more details, refer to Available Commands.

Screenshots

Screenshot # 1

Screenshot # 2

Screenshot # 3

Last updated

Was this helpful?