Skip to content

Commit 449b12d

Browse files
perf(bitbucket): increase server page limit to 1000 for fetching all repos
Requests 1000 repos per page instead of defaulting to 25, reducing the number of API calls needed to enumerate large Bitbucket Server instances. The server silently caps at its configured maximum (page.max.repositories), so pagination via isLastPage/nextPageStart remains correct regardless. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1927d37 commit 449b12d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/bitbucket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ async function serverGetAllRepos(client: BitbucketClient): Promise<{repos: Serve
581581
const { durationMs, data } = await measure(async () => {
582582
const fetchFn = () => getPaginatedServer<ServerRepository>(path, async (url, start) => {
583583
const response = await client.apiClient.GET(url, {
584-
params: { query: { start } }
584+
params: { query: { limit: 1000, start } }
585585
});
586586
const { data, error } = response;
587587
if (error) {

0 commit comments

Comments
 (0)