Azure DevOps
Overview
Section titled “Overview”The Azure DevOps integration lets Cosine import repositories, create branches, and open pull requests directly from your Azure DevOps projects.
Prerequisites
Section titled “Prerequisites”Before connecting Azure DevOps:
- You must have an Azure DevOps account with access to the organization and projects you want to use.
- You must have permission to authorize apps for the organization.
Tip: Create a dedicated Azure DevOps user (for example, cosine-ai@yourdomain.com) so Cosine activity is easy to audit and attribute.
Create a dedicated Cosine account
Section titled “Create a dedicated Cosine account”We recommend creating a separate Azure DevOps user for Cosine.
- Create a new Azure DevOps user and set a clear display name, such as Cosine AI.
- Add the user to the Azure DevOps organization you want Cosine to access.
- Grant the user access to the projects and repositories Cosine should work in.
Install the Azure DevOps integration
Section titled “Install the Azure DevOps integration”- Open your Cosine dashboard.
- Go to Team Settings → Integrations.
- Select Azure DevOps.
- Click Connect and sign in with the dedicated Azure DevOps account.
- Approve the permissions prompt to authorize Cosine.
After authorization, you will be returned to Cosine and the integration will show as connected.
Import repositories
Section titled “Import repositories”Once connected, create a new project in Cosine and choose Import from Azure DevOps. Select the organization and project, then choose the repository to import.
If you do not see a repository:
- Confirm the Azure DevOps account has access to the project and repo.
- Verify you selected the correct organization and project in Cosine.
- Check the repository has not already been imported (repositories already connected to projects are hidden).
Usage after setup
Section titled “Usage after setup”With Azure DevOps connected, Cosine can:
- Import Azure DevOps repositories into the platform.
- Create branches and push commits to your repositories.
- Open pull requests automatically for tasks that include code changes.
- Track pull request updates (status changes and new commits) and keep the Cosine task up to date.
When you create a new project in Cosine, use Import from Azure DevOps to choose the organization, project, and repository you want to work on.
Disconnect or revoke access
Section titled “Disconnect or revoke access”To remove access, do both of the following:
- In Cosine, open Team Settings → Integrations → Azure DevOps and select Disconnect.
- In Azure DevOps, open User settings → Profile → Authorized OAuth Apps and revoke Cosine.