MunifTanjim / node-bitbucket

Bitbucket API client for Browser and Node.js
https://bitbucketjs.netlify.app
MIT License
106 stars 28 forks source link

listRepositories always returns 10, regardless of pagelen parameter. #76

Closed jacquesleemans closed 3 years ago

jacquesleemans commented 3 years ago

REQ: bitbucket.teams.listRepositories({ username : "TEAM", pagelen : 100 });

RES: { pagelen: 10, size: 51, values: [...] }

We have about 200 repos in the team, is this a limit on the bitbucket API?

MunifTanjim commented 3 years ago

Bitbucket API is ignoring the pagelen parameter for the https://api.bitbucket.org/2.0/teams/<username>/repositories?pagelen=3 API endpoint.

Nothing we can do...

MunifTanjim commented 3 years ago

Have you tried using the /repositories/{workspace} endpoint with bitbucket.repositories.list({ workspace: 'TEAM', pagelen: 100 }) method?

jacquesleemans commented 3 years ago

Thanks, bitbucket.repositories.list({ workspace: 'TEAM', pagelen: 100 }) worked.