dev.azure.com, including organizations that still use *.visualstudio.com URLs, that are connected to Microsoft Entra ID. Mintlify does not support Azure DevOps Server.
Requirements
- An Azure DevOps organization connected to Microsoft Entra ID.
- An Entra administrator who grants consent to the Mintlify app in your tenant.
- The Mintlify app added to your Azure DevOps organization with Basic access, and to the project that contains your repository.
- The Mintlify app in the project’s Project Administrators group. Azure DevOps only lets project administrators create service hooks.
- A Microsoft account that is a project administrator or has Manage permissions on the repository you want to connect.
- Admin access to your Mintlify organization.
- A
docs.jsonfile in your repository.
Set up a new Azure Repos connection
When you open Git Settings for the first time, a setup wizard guides you through connecting your repository.Select Azure Repos as your provider
- On the Git Settings page, click Connect to Azure Repos.
- Click Continue.
Move Mintlify-hosted content
Connect Microsoft
- Click Connect Microsoft.
- Sign in with a Microsoft account that is a project administrator or has Manage permissions on the repository you want to connect.
Select the repository
- Organization: The Azure DevOps organization. For example, in
https://dev.azure.com/acme/docs-project/_git/docs,acmeis the organization. - Project: The project that contains the repository, such as
docs-project. - Repository: The repository name, such as
docs. - Deploy branch: The branch that publishes to your production documentation site, such as
main.
Configure a content directory (optional)
- If your
docs.jsonfile is in a subdirectory, enable docs.json is in a subdirectory. - Enter the path to the directory that contains your
docs.jsonfile. For example, if yourdocs.jsonis in theapps/docs/directory, enterapps/docs.
Connect the repository
- Click Connect.
- Confirm the change.
Switch an existing deployment to Azure Repos
- On the Git Settings page, select Azure Repos as the Git provider.
- If you haven’t connected a Microsoft account, click Connect Microsoft and sign in.
- Select the organization, project, repository, and deploy branch, and enter a content directory if needed.
- Click Switch to Azure Repos.
Change the connected Microsoft account
Your entire Mintlify organization shares the Microsoft account in Git Settings, and only admins can change it. Mintlify refreshes Microsoft credentials automatically, so you don’t need to rotate tokens. To use a different account, open the Microsoft connection section on the Git Settings page and click Change account. The new account must be a project administrator or have Manage permissions on the repository.Edit in the web editor
You can edit Azure Repos content in the web editor. When you publish, Mintlify pushes a branch to Azure Repos and opens a pull request against your deploy branch.- Branches that you push to Azure Repos sync into the editor.
- Changes to pull requests in Azure Repos sync into the matching editor branch.
- When you delete a branch in Azure Repos, Mintlify removes it from the editor.
- If your deploy branch has blocking branch policies, such as required reviewers, publish through a pull request.
Preview deployments
When you open a pull request against your deploy branch, Mintlify builds a preview deployment and links to it from a Mintlify preview ready status on the pull request. Mintlify rebuilds the preview when you push to the pull request’s branch, and deletes it when you complete or abandon the pull request or delete the branch.Use Autopilot
Autopilot works with Azure Repos. It runs when code merges into connected repositories and opens pull requests in your Azure Repos repository. Accept or close its pull requests on the Autopilot page, or merge them in Azure Repos. To give Autopilot more context, connect your source code repositories in Git Settings, then select them in the Azure Repos row of the Autopilot page. See Azure Repos repositories. On Azure Repos, Autopilot does not assign pull requests, request reviews, or respond to pull request comments. To ask for changes, send a message in the suggestion on the Autopilot page.Use the agent in Slack
The agent in Slack works with Azure Repos. When you ask it to update your content, it opens a pull request in your Azure Repos repository.Troubleshooting
Mintlify couldn't sign in to your Microsoft Entra tenant
Mintlify couldn't sign in to your Microsoft Entra tenant
The organization isn't connected to Microsoft Entra ID
The organization isn't connected to Microsoft Entra ID
Add the Mintlify app to the organization or project
Add the Mintlify app to the organization or project
Add the Mintlify app to the Project Administrators group
Add the Mintlify app to the Project Administrators group
Your Microsoft account can't access the repository
Your Microsoft account can't access the repository
Only a project administrator can connect the repository
Only a project administrator can connect the repository
The deploy branch was not found
The deploy branch was not found
Pushes don't trigger a deployment
Pushes don't trigger a deployment