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
Follow the step-by-step instructions provided here to install the AI Code Review Agent using Bito Cloud. Review the Prerequisites, Installation and Configuration Steps, and the Webhook Setup Guide provided there.
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
FileConfigure the following properties in the
bito_action.properties
file located in the downloaded bito-action-script folder.
Property Name | Description |
---|---|
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
- 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
.properties
file or provide values that are not included in the file. For example, you can configureagent_instance_url
andagent_instance_secret
in thebito_action.properties
file, and only passpr_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