Clearly AIDocs

Azure Repos

Connect Clearly AI to Azure DevOps repositories.

Connect Azure Repos so Clearly AI can use Azure DevOps repositories and branches as Project sources.

Azure Repos is separate from Azure DevOps Work Items. Use this page for code repositories. Use the Work Items page for tickets.

Create the PAT from an Azure DevOps user or service account that can access the repositories Clearly AI should read. Grant Code: Read for repository sources, or Code: Read & Write if Workflows should write pull request comments.

Create an Azure DevOps PAT

  1. In Azure DevOps, open User settings > Personal access tokens.
  2. Click New Token.
  3. Choose the organization Clearly AI should access.
  4. Set an expiration date that matches your security policy.
  5. Grant Code: Read for source ingestion, or Code: Read & Write if Clearly AI should write pull request comments.
  6. Create the token and copy it. Azure DevOps shows it only once.

Connect Azure Repos in Clearly AI

  1. In Clearly AI, open Integrations and select Azure DevOps Repository.
  2. In Organization ID, enter the Azure DevOps organization name from https://dev.azure.com/<organization>.
  3. In Personal Key, paste the PAT.
  4. Save and test the connection.

The connection test verifies the organization and basic repository access.

Add an Azure Repos branch as a source

  1. Open a Project.
  2. Open Manage Sources and click Search Integrations.
  3. Select Azure DevOps Repository.
  4. Choose the Azure DevOps project.
  5. Choose the repository.
  6. Choose the branch. Clearly AI prefers the API-reported default branch when available.
  7. Save the source and wait for processing.

Clearly AI downloads the selected branch, filters common junk files, and stores the result as Project context for Reviews and Chat.

Narrow large repositories

Repository sources can be large. When needed, use file include and exclude patterns in the source configuration.

Examples:

files_to_include: ["src/**", "infra/**"]
files_to_exclude: ["node_modules", "*.log", "*.test.*", ".*"]

FAQs