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