From ba698758d463964d08a42b88fd03ea5b4030f6c2 Mon Sep 17 00:00:00 2001 From: msukkari Date: Wed, 17 Sep 2025 18:01:15 -0700 Subject: [PATCH] fix build error --- docs/docs/connections/ado-server.mdx | 13 +++++++++++++ packages/backend/src/azuredevops.ts | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/docs/connections/ado-server.mdx b/docs/docs/connections/ado-server.mdx index e1d755f8..b2586056 100644 --- a/docs/docs/connections/ado-server.mdx +++ b/docs/docs/connections/ado-server.mdx @@ -11,6 +11,19 @@ If you're not familiar with Sourcebot [connections](/docs/connections/overview), ## Examples + + This is required if you're using an older version of ADO Server which has `/tfs` in the repo paths. + ```json + { + "type": "azuredevops", + "useTfsPath": true + "repos": [ + "organizationName/projectName/repoName", + "organizationName/projectName/repoName2 + ] + } + ``` + ```json { diff --git a/packages/backend/src/azuredevops.ts b/packages/backend/src/azuredevops.ts index 41f5355a..a06b9c09 100644 --- a/packages/backend/src/azuredevops.ts +++ b/packages/backend/src/azuredevops.ts @@ -57,9 +57,9 @@ export const getAzureDevOpsReposFromConfig = async ( repos: [], }; - if (config.organizations) { + if (config.orgs) { const { validRepos, notFoundOrgs } = await getReposForOrganizations( - config.organizations, + config.orgs, baseUrl, token, useTfsPath