Skip to content

Commit 139064a

Browse files
authored
Update azuredevops.mdx (#1746)
Updated the page to include the recently Added `repos` field to Azure DevOps external service for explicit repository selection
1 parent 9da3f39 commit 139064a

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

docs/admin/code-hosts/azuredevops.mdx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,19 @@ Next, configure the code host connection by following the next steps:
3939
"username": "<admin username>",
4040
"token": "<admin token>",
4141
"projects": ["org1/project1"],
42-
"orgs": ["org2"]
42+
"orgs": ["org2"],
43+
"repos": [
44+
"myorg/myproject/myrepo1",
45+
"myorg/myproject/myrepo2"
46+
]
4347
}
4448
```
4549

4650
1. Select **Add repositories**.
4751

4852
## Repository syncing
4953

50-
Currently, all repositories belonging to the configured organizations/projects will be synced.
54+
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.
5155

5256
In addition, you may exclude one or more repositories by setting the [`exclude`](/admin/code-hosts/azuredevops#configuration) field in the code host connection.
5357

@@ -127,6 +131,13 @@ Azure DevOps connections support the following configuration options, which are
127131
// ]
128132
"projects": null,
129133

134+
// An array of "org/project/repo" strings specifying which Azure DevOps repositories within a project should be mirrored in Sourcegraph.
135+
"repos": [
136+
"myorg/my-project/myrepo", // Format: <organization>/<project>/<repository>
137+
"myorg/myproject/myproject", // Format: repository where project and repo share the same name
138+
"myorg/my project/my project" // Format: spaces in project or repository names
139+
]
140+
130141
// Rate limit applied when making background API requests.
131142
"rateLimit": {
132143
"enabled": false,

0 commit comments

Comments
 (0)