From 4ed3fd8ceeb8cc887f02c15ce6605db2886d99d1 Mon Sep 17 00:00:00 2001 From: mibali <111276665+mibali@users.noreply.github.com> Date: Fri, 10 Apr 2026 17:16:33 +0100 Subject: [PATCH 1/2] Update azuredevops.mdx Updated the page to include the recently Added `repos` field to Azure DevOps external service for explicit repository selection --- docs/admin/code-hosts/azuredevops.mdx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/admin/code-hosts/azuredevops.mdx b/docs/admin/code-hosts/azuredevops.mdx index a3b676c21..63541e590 100644 --- a/docs/admin/code-hosts/azuredevops.mdx +++ b/docs/admin/code-hosts/azuredevops.mdx @@ -40,6 +40,11 @@ Next, configure the code host connection by following the next steps: "token": "", "projects": ["org1/project1"], "orgs": ["org2"] + // Optionally, use the `repos` field below to sync only specific repositories. + "repos": [ + "myorg/myproject/myrepo1", + "myorg/myproject/myrepo2" + ] } ``` @@ -47,7 +52,7 @@ Next, configure the code host connection by following the next steps: ## Repository syncing -Currently, all repositories belonging to the configured organizations/projects will be synced. +All repositories within the configured organizations/projects are synced by default, but you can also choose to sync either all repositories or only specific repositories from those organizations/projects. In addition, you may exclude one or more repositories by setting the [`exclude`](/admin/code-hosts/azuredevops#configuration) field in the code host connection. @@ -127,6 +132,13 @@ Azure DevOps connections support the following configuration options, which are // ] "projects": null, + // An array of "org/project/repo" strings specifying which Azure DevOps repositories within a project should be mirrored in Sourcegraph. + "repos": [ + "myorg/my-project/myrepo", // Format: // + "myorg/myproject/myproject", // Format: repository where project and repo share the same name + "myorg/my project/my project" // Format: spaces in project or repository names + ] + // Rate limit applied when making background API requests. "rateLimit": { "enabled": false, From 8b68c98f11c4ba3d1df7888a5c3e978622279a7d Mon Sep 17 00:00:00 2001 From: mibali <111276665+mibali@users.noreply.github.com> Date: Fri, 10 Apr 2026 18:27:30 +0100 Subject: [PATCH 2/2] Update azuredevops.mdx --- docs/admin/code-hosts/azuredevops.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/admin/code-hosts/azuredevops.mdx b/docs/admin/code-hosts/azuredevops.mdx index 63541e590..60ea02fb2 100644 --- a/docs/admin/code-hosts/azuredevops.mdx +++ b/docs/admin/code-hosts/azuredevops.mdx @@ -39,8 +39,7 @@ Next, configure the code host connection by following the next steps: "username": "", "token": "", "projects": ["org1/project1"], - "orgs": ["org2"] - // Optionally, use the `repos` field below to sync only specific repositories. + "orgs": ["org2"], "repos": [ "myorg/myproject/myrepo1", "myorg/myproject/myrepo2"