Skip to content

Commit 5c2ab6d

Browse files
authored
By default the Azure DevOps REST API queries the first 100 projects
By default the Azure DevOps REST API queries the first 100 projects, I am working in an organization with more than 100 projects. I put 300 because it is the top of projects in Azure DevOps
1 parent b15a400 commit 5c2ab6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-devops-client/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (c *AzureDevopsClient) ListProjects() (list ProjectList, error error) {
2929
c.concurrencyLock()
3030

3131
url := fmt.Sprintf(
32-
"_apis/projects?api-version=%v",
32+
"_apis/projects?$top=300&api-version=%v",
3333
url.QueryEscape(c.ApiVersion),
3434
)
3535
response, err := c.rest().R().Get(url)

0 commit comments

Comments
 (0)