Skip to content

Commit

Permalink
refactor(bitbucket): use paginated api for pullrequests (#22330)
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed May 22, 2023
1 parent 550ab80 commit 5597560
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/modules/platform/bitbucket/index.ts
Expand Up @@ -279,7 +279,12 @@ export async function getPrList(): Promise<Pr[]> {
if (renovateUserUuid && !config.ignorePrAuthor) {
url += `&q=author.uuid="${renovateUserUuid}"`;
}
const prs = await utils.accumulateValues(url, undefined, undefined, 50);
const prs = (
await bitbucketHttp.getJson<PagedResult<PrResponse>>(url, {
paginate: true,
pagelen: 50,
})
).body.values;
config.prList = prs.map(utils.prInfo);
logger.debug(`Retrieved Pull Requests, count: ${config.prList.length}`);
}
Expand Down

0 comments on commit 5597560

Please sign in to comment.