> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codeant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pull Request Review

> Configure CodeAnt AI pull request review for Azure Devops

Follow the below steps for pull request review configuration:

1. **Install CodeAnt AI App:**

For Azure devops users, simply install the [CodeAnt AI app](https://marketplace.visualstudio.com/items?itemName=codeantai.codeant-azure-devops-extension).

2. **Create access token:**

   * Go to the access token menu
     <img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/pull_request/azure_devops/pat_menu.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=eb17c5372d4ba689a9da3ee3f66c88e9" alt="PAT" width="3420" height="2040" data-path="images/pull_request/azure_devops/pat_menu.png" />
   * Click on "+ New Token"
   * \*\* Configuration \*\*
     * **Name:** CodeAnt AI
     * **Expiry date:** Select maximum possible, ideally one year.
     * **Scopes:**
       * Code (Read & Write) - For Code Analysis
       * Pull Request Threads (Read & Write) - For PR Review
       * Build (Read) - For Dora Metrics
       * Work Items (Read) - For Dora Metrics
   * Copy this access token

3. **Enabling Service Hooks:**

   * Select a project -> Project settings -> Service hooks

   * Click on Create a new subscription
     <img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/pull_request/azure_devops/subscription_button.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=b2177541c1d92290c086084607486a43" alt="Subscription" width="3420" height="1968" data-path="images/pull_request/azure_devops/subscription_button.png" />

   * Select CodeAnt AI service -> Next
     <img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/pull_request/azure_devops/select_service.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=c3033d787fb8af56581dd78f20a8267f" alt="Service" width="1212" height="1206" data-path="images/pull_request/azure_devops/select_service.png" />

   * Select Pull Request Created trigger -> Next
     <img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/pull_request/azure_devops/trigger_selection.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=d95226c6b723eee8663df8af558b826e" alt="Trigger selection" width="1202" height="1212" data-path="images/pull_request/azure_devops/trigger_selection.png" />

   * Paste Access token that we created in the first step -> Finish
     <img src="https://mintcdn.com/codeantai/cPAPWnajTUNzakyT/images/pull_request/azure_devops/pat_setting.png?fit=max&auto=format&n=cPAPWnajTUNzakyT&q=85&s=b14a17a41c5224dd2ebd894def8a1fdc" alt="PAT Setting" width="1210" height="1210" data-path="images/pull_request/azure_devops/pat_setting.png" />

   * Follow the same steps for the "Pull Request Comment Created" Trigger

Your Pull Request Review will start from the next PR Onwards
