-
Notifications
You must be signed in to change notification settings - Fork 30
Remove beta from Azure devops #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,101 @@ | ||
--- | ||
title: Integrating CodeRabbit with Azure DevOps | ||
description: Integrate CodeRabbit with Azure DevOps. | ||
sidebar_label: Azure DevOps (Beta) | ||
sidebar_label: Azure DevOps | ||
sidebar_position: 5 | ||
--- | ||
|
||
This guide will assist you in effectively integrating CodeRabbit with Azure DevOps. | ||
This guide will assist you in effectively integrating CodeRabbit with Azure | ||
DevOps. | ||
|
||
## Prerequisites | ||
|
||
* An active Azure DevOps account. | ||
* Use of organizational email addresses is required; personal email addresses are not supported for this integration. | ||
- An active Azure DevOps account. | ||
- Use of organizational email addresses is required; personal email addresses | ||
are not supported for this integration. | ||
|
||
## Integration Instructions | ||
|
||
1. Log in to the CodeRabbitAI application. | ||
2. After logging in, you will be redirected to a page displaying Microsoft Apps consent requests. Please forward these requests to your administrator for approval. | ||
2. After logging in, you will be redirected to a page displaying Microsoft Apps | ||
consent requests. Please forward these requests to your administrator for | ||
approval. | ||
|
||
:::warning | ||
|
||
If you are an administrator, you may approve the applications directly. If not, please contact your administrator to request approval for the applications. | ||
If you are an administrator, you may approve the applications directly. If not, | ||
please contact your administrator to request approval for the applications. | ||
|
||
::: | ||
|
||
 | ||
|
||
3. Once your administrator has approved the applications, click "Continue." | ||
4. You will be redirected to the "Onboarding" page, where you can select the organization you wish to integrate with. | ||
5. On the "Azure DevOps User" page, enter your Personal Access Token for Azure DevOps. | ||
 | ||
6. To install CodeRabbit on a repository, toggle the switch on the "Repositories" page. | ||
4. You will be redirected to the "Onboarding" page, where you can select the | ||
organization you wish to integrate with. | ||
5. On the "Azure DevOps User" page, enter your Personal Access Token for Azure | ||
DevOps. | ||
 | ||
6. To install CodeRabbit on a repository, toggle the switch on the | ||
"Repositories" page. | ||
|
||
## How it works | ||
|
||
For the CodeRabbit app to post reviews on merge requests, it needs to interact with the Azure DevOps API, which requires a Personal Access Token. This token can be generated by creating a Personal Access Token from one of your existing users. | ||
For the CodeRabbit app to post reviews on merge requests, it needs to interact | ||
with the Azure DevOps API, which requires a Personal Access Token. This token | ||
can be generated by creating a Personal Access Token from one of your existing | ||
users. | ||
|
||
You can create a new user in Azure DevOps and generate a Personal Access Token for that user, following [our recommendations](#recommendations). | ||
You can create a new user in Azure DevOps and generate a Personal Access Token | ||
for that user, following [our recommendations](#recommendations). | ||
|
||
## Azure DevOps Personal Access Tokens | ||
|
||
To interact with the Azure DevOps API, a **Personal Access Token** is required. This token can be generated by creating a **Personal Access Token** from one of your existing users. | ||
To interact with the Azure DevOps API, a **Personal Access Token** is required. | ||
This token can be generated by creating a **Personal Access Token** from one of | ||
your existing users. | ||
|
||
Upon first login to the application (immediately after the onboarding screen), you will need to add the Personal Access Token. | ||
Upon first login to the application (immediately after the onboarding screen), | ||
you will need to add the Personal Access Token. | ||
|
||
 | ||
|
||
### Recommendations | ||
|
||
* **Create a dedicated user for CodeRabbit** - This ensures the user is exclusively for CodeRabbit, allowing better access control. | ||
* **Use "CodeRabbit" as the username** - This makes the user easily recognizable for future reference. | ||
* **Use a dedicated email address** - This helps in easy identification and management. | ||
* **Use the CodeRabbit logo as the profile picture** - This further ensures easy recognition. You can download our logo from [here](/img/integrations/logo.svg "download"). | ||
- **Create a dedicated user for CodeRabbit** - This ensures the user is | ||
exclusively for CodeRabbit, allowing better access control. | ||
- **Use "CodeRabbit" as the username** - This makes the user easily recognizable | ||
for future reference. | ||
- **Use a dedicated email address** - This helps in easy identification and | ||
management. | ||
- **Use the CodeRabbit logo as the profile picture** - This further ensures easy | ||
recognition. You can download our logo from | ||
[here](/img/integrations/logo.svg "download"). | ||
|
||
### Key Points to Remember | ||
|
||
* Personal access tokens have expiration dates. Ensure the expiration date covers the duration of your intended use of the CodeRabbit app. | ||
* Code reviews will be attributed to the owner of the personal access token. | ||
* If the personal access token expires, you can add a new one via the CodeRabbit UI: | ||
* Navigate to the "AzureDevOps User" page in the sidebar. | ||
* Add the new token and click save. | ||
- Personal access tokens have expiration dates. Ensure the expiration date | ||
covers the duration of your intended use of the CodeRabbit app. | ||
- Code reviews will be attributed to the owner of the personal access token. | ||
- If the personal access token expires, you can add a new one via the CodeRabbit | ||
UI: | ||
- Navigate to the "AzureDevOps User" page in the sidebar. | ||
- Add the new token and click save. | ||
|
||
### Generating a Personal Access Token | ||
|
||
Azure DevOps provides an option to generate a personal access token for a user. Follow these steps to generate the token: | ||
Azure DevOps provides an option to generate a personal access token for a user. | ||
Follow these steps to generate the token: | ||
|
||
1. Log in as the user intended for CodeRabbit reviews. | ||
2. Next to your avatar on the headers right side is a settings icon, click it. | ||
3. Choose "Personal Access Tokens" | ||
4. Click "New Token" | ||
5. Select the organization you want to use the token with or select "All accessible organizations." | ||
5. Select the organization you want to use the token with or select "All | ||
accessible organizations." | ||
6. Enter a name and an expiry date for the token. | ||
7. We need to have read & write access to "Work Items" & "Code" to post reviews on pull requests. | ||
7. We need to have read & write access to "Work Items" & "Code" to post reviews | ||
on pull requests. | ||
8. Click "Create" | ||
|
||
 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.