fix: repo length

This commit is contained in:
Lorenzo Migliorero 2024-10-03 13:54:40 +02:00
parent 9b255964fe
commit 682863f83e
No known key found for this signature in database
GPG Key ID: 9A9F1AD60C05DFE2

View File

@ -225,7 +225,7 @@ export const getBitbucketRepositories = async (bitbucketId?: string) => {
const username =
bitbucketProvider.bitbucketWorkspaceName ||
bitbucketProvider.bitbucketUsername;
const url = `https://api.bitbucket.org/2.0/repositories/${username}`;
const url = `https://api.bitbucket.org/2.0/repositories/${username}?pagelen=100`;
try {
const response = await fetch(url, {
@ -244,6 +244,8 @@ export const getBitbucketRepositories = async (bitbucketId?: string) => {
const data = await response.json();
console.log(data.values);
const mappedData = data.values.map((repo: any) => {
return {
name: repo.name,