Getatlas K5zxyqu03iCodeRabbit
Help CenterGetting StartedIntegrating CodeRabbit with GitHub and GitLab

Integrating CodeRabbit with GitHub and GitLab

Last updated June 7, 2024

Integrating CodeRabbit with your GitHub or GitLab account allows you to leverage AI-driven code reviews directly within your development workflow. Follow these simple steps to set up the integration and start enhancing your pull request reviews with CodeRabbit.

Step-by-Step Guide

For GitHub Integration:

1. Navigate to Integration Settings

  • Login to CodeRabbit: Go to  CodeRabbit's website  and log in to your account.
  • Access settings: From the dashboard, navigate to the settings menu and select "Integrations."

2. Connect to GitHub

  • Select GitHub: Choose GitHub from the list of available integrations.
  • Authorize CodeRabbit: Click on the "Connect to GitHub" button. You will be redirected to GitHub to authorize CodeRabbit's access to your repositories.
  • Grant permissions: Review the requested permissions and click "Authorize CodeRabbit" to grant access.

3. Select Repositories

  • Choose repositories: Once connected, select the repositories you want CodeRabbit to monitor and review.
  • Set up webhooks: CodeRabbit will automatically set up the necessary webhooks to receive updates on pull requests and commits.

4. Confirm Integration

  • Verify setup: Return to CodeRabbit and verify that your repositories are listed under the connected GitHub account.
  • Test the integration: Create a test pull request in one of your connected repositories to ensure CodeRabbit is providing feedback.

For GitLab Integration:

1. Navigate to Integration Settings

  • Login to CodeRabbit: Go to  CodeRabbit's website  and log in to your account.
  • Access settings: From the dashboard, navigate to the settings menu and select "Integrations."

2. Connect to GitLab

  • Select GitLab: Choose GitLab from the list of available integrations.
  • Authorize CodeRabbit: Click on the "Connect to GitLab" button. You will be redirected to GitLab to authorize CodeRabbit's access to your repositories.
  • Grant permissions: Review the requested permissions and click "Authorize CodeRabbit" to grant access.

3. Select Repositories

  • Choose repositories: Once connected, select the repositories you want CodeRabbit to monitor and review.
  • Set up webhooks: CodeRabbit will automatically set up the necessary webhooks to receive updates on merge requests and commits.

4. Confirm Integration

  • Verify setup: Return to CodeRabbit and verify that your repositories are listed under the connected GitLab account.
  • Test the integration: Create a test merge request in one of your connected repositories to ensure CodeRabbit is providing feedback.

Conclusion

Integrating CodeRabbit with GitHub or GitLab is a straightforward process that brings AI-powered code reviews into your development workflow. By following these steps, you can enhance your code quality and streamline your review process. If you encounter any issues, refer to our  FAQs  or contact support for assistance. --- This guide provides a clear and concise process to help users integrate CodeRabbit with GitHub and GitLab, ensuring a smooth setup and immediate access to enhanced code reviews.

Was this article helpful?