From 65165dceeb24ca42e7dfd52bb191b5d6ed5c00f5 Mon Sep 17 00:00:00 2001 From: ypc-faros <99700024+ypc-faros@users.noreply.github.com> Date: Mon, 26 Aug 2024 14:53:33 -0400 Subject: [PATCH] FAI-12269 Conform to new Bitbucket spec (#357) --- cli/src/bitbucket/run.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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,