Integrate the AI Code Review Agent into the CI/CD pipeline
Automate code reviews in your Continuous Integration/Continuous Deployment (CI/CD) pipeline—compatible with all CI/CD tools, including Jenkins, Argo CD, GitLab CI/CD, and more.
Bito Cloud lets you integrate the AI Code Review Agent into your CI/CD pipeline for automated code reviews. This document provides a step-by-step guide to help you configure and run the script successfully.
Installation and Configuration Steps
Select the appropriate Git provider guide from this link based on your Git provider, and follow the step-by-step instructions to install the AI Code Review Agent using Bito Cloud. Be sure to review the prerequisites and the installation/configuration steps provided in the documentation.
Download the bito-action-script folder from GitHub, which includes a shell script (
bito-actions.sh) and a configuration file (bito_action.properties).You can integrate the AI Code Review Agent into your CI/CD pipeline in two ways, depending on your preference:
Option 1: Using the
bito_action.propertiesFileConfigure the following properties in the
bito_action.propertiesfile located in the downloaded bito-action-script folder.
agent_instance_url
The URL of the Agent instance provided after configuring the AI Code Review Agent with Bito Cloud.
agent_instance_secret
The secret key for the Agent instance obtained after configuring the AI Code Review Agent with Bito Cloud.
pr_url
URL of your pull request on GitLab, GitHub, or BitBucket.
Run the following command:
./bito_actions.sh bito_action.propertiesNote: When using the properties file, make sure to provide all the three parameters in
.propertiesfile
- Option 2: Using Runtime Values
Provide all necessary values directly on the command line:
./bito_actions.sh agent_instance_url=<agent_instance_url> agent_instance_secret=<secret> pr_url=<pr_url>Replace
<agent_instance_url>,<secret>, and<pr_url>with your specific values.
Note: You can also override the values given in the
.propertiesfile or provide values that are not included in the file. For example, you can configureagent_instance_urlandagent_instance_secretin thebito_action.propertiesfile, and only passpr_urlon the command line during runtime../bito_actions.sh bito_action.properties pr_url=<pr_url>Replace
<pr_url>with your specific values.
Incorporate the AI Code Review Agent into your CI/CD pipeline by adding the appropriate commands to your build or deployment scripts. This integration will automatically trigger code reviews as part of the pipeline, enhancing your development workflow by enforcing code quality checks with every change.
Last updated

