diff --git a/cli/src/bitbucket/run.ts b/cli/src/bitbucket/run.ts index 5db978c..30de58b 100644 --- a/cli/src/bitbucket/run.ts +++ b/cli/src/bitbucket/run.ts @@ -26,7 +26,6 @@ const DEFAULT_API_URL = 'https://api.bitbucket.org/2.0'; interface BitbucketConfig { readonly airbyte: Airbyte; readonly metabase: Metabase; - readonly serverUrl?: string; readonly username?: string; readonly password?: string; readonly token?: string; @@ -70,8 +69,6 @@ export function makeBitbucketCommand(): Command { export async function runBitbucket(cfg: BitbucketConfig): Promise { await cfg.airbyte.waitUntilHealthy(); - const serverUrl = DEFAULT_API_URL; - const username = cfg.username || (await runInput({ @@ -168,13 +165,13 @@ export async function runBitbucket(cfg: BitbucketConfig): Promise { const bitbucketSourceId = await cfg.airbyte.findFarosSource('Bitbucket'); await cfg.airbyte.setupSource({ connectionConfiguration: { - serverUrl, + api_url: DEFAULT_API_URL, workspaces: [workspaces], repositories: repos, cutoff_days: cfg.cutoffDays || DEFAULT_CUTOFF_DAYS, username, password, - pagelen: 10, + page_size: 10, }, name: 'Bitbucket', sourceId: bitbucketSourceId,