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.
Last updated
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.
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.properties File
Configure the following properties in the bito_action.properties file 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.properties
Note: When using the properties file, make sure to provide all the three parameters in .properties file
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 .properties file or provide values that are not included in the file. For example, you can configure agent_instance_url and agent_instance_secret in the bito_action.properties file, and only pass pr_url on 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

