Skip to content

Commit

Permalink
feat(bitbucket): use paginated effective default reviewers response (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed May 13, 2023
1 parent d82a811 commit 0e27bd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/modules/platform/bitbucket/index.ts
Expand Up @@ -802,7 +802,10 @@ export async function createPr({
if (platformOptions?.bbUseDefaultReviewers) {
const reviewersResponse = (
await bitbucketHttp.getJson<PagedResult<EffectiveReviewer>>(
`/2.0/repositories/${config.repository}/effective-default-reviewers`
`/2.0/repositories/${config.repository}/effective-default-reviewers`,
{
paginate: true,
}
)
).body;
reviewers = reviewersResponse.values.map((reviewer: EffectiveReviewer) => ({
Expand Down

0 comments on commit 0e27bd1

Please sign in to comment.