diff --git a/lib/modules/platform/bitbucket/index.ts b/lib/modules/platform/bitbucket/index.ts index de980f3b5201e4947a5a7e0a0def4bcd79199aaa..ff3e2ca323bd9e4133eb97c8a080cdf87f000c4d 100644 --- a/lib/modules/platform/bitbucket/index.ts +++ b/lib/modules/platform/bitbucket/index.ts @@ -114,9 +114,14 @@ export async function initPlatform({ export async function getRepos(): Promise<string[]> { logger.debug('Autodiscovering Bitbucket Cloud repositories'); try { - const repos = await utils.accumulateValues<{ full_name: string }>( - `/2.0/repositories/?role=contributor` - ); + const repos = ( + await bitbucketHttp.getJson<PagedResult<RepoInfoBody>>( + `/2.0/repositories/?role=contributor`, + { + paginate: true, + } + ) + ).body.values; return repos.map((repo) => repo.full_name); } catch (err) /* istanbul ignore next */ { logger.error({ err }, `bitbucket getRepos error`); diff --git a/lib/modules/platform/bitbucket/types.ts b/lib/modules/platform/bitbucket/types.ts index 0ffb4b9623cb77a261d38f927bb0bf2535370539..d11477412b963b0dc2a8bb7332688b8c860a012f 100644 --- a/lib/modules/platform/bitbucket/types.ts +++ b/lib/modules/platform/bitbucket/types.ts @@ -62,6 +62,7 @@ export interface RepoInfoBody { mainbranch: { name: string }; has_issues: boolean; uuid: string; + full_name: string; } export interface PrResponse {