diff --git a/lib/modules/platform/bitbucket/index.ts b/lib/modules/platform/bitbucket/index.ts index de980f3b5201e4..ff3e2ca323bd9e 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 { 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>( + `/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 0ffb4b9623cb77..d11477412b963b 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 {