Skip to content

Commit 7fed585

Browse files
perf(bitbucket): bump remaining getPaginatedServer call sites to limit 1000
Updates serverGetReposForProjects, getReposForAuthenticatedBitbucketServerUser, and getUserPermissionsForServerRepo to match the limit set in serverGetAllRepos. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 449b12d commit 7fed585

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/backend/src/bitbucket.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ async function serverGetReposForProjects(client: BitbucketClient, projects: stri
480480
const response = await client.apiClient.GET(url, {
481481
params: {
482482
query: {
483+
limit: 1000,
483484
start,
484485
}
485486
}
@@ -712,7 +713,7 @@ export const getReposForAuthenticatedBitbucketServerUser = async (
712713
params: {
713714
query: {
714715
permission: 'REPO_READ',
715-
limit: 100,
716+
limit: 1000,
716717
start,
717718
},
718719
},
@@ -747,7 +748,7 @@ export const getUserPermissionsForServerRepo = async (
747748
`/rest/api/1.0/projects/${projectKey}/repos/${repoSlug}/permissions/users` as ServerGetRequestPath,
748749
async (url, start) => {
749750
const response = await client.apiClient.GET(url, {
750-
params: { query: { limit: 100, start } },
751+
params: { query: { limit: 1000, start } },
751752
});
752753
const { data, error } = response;
753754
if (error) {

0 commit comments

Comments
 (0)