Skip to content

Commit

Permalink
FAI-12269 Conform to new Bitbucket spec (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypc-faros authored Aug 26, 2024
1 parent 7509733 commit 65165dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cli/src/bitbucket/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -70,8 +69,6 @@ export function makeBitbucketCommand(): Command {
export async function runBitbucket(cfg: BitbucketConfig): Promise<void> {
await cfg.airbyte.waitUntilHealthy();

const serverUrl = DEFAULT_API_URL;

const username =
cfg.username ||
(await runInput({
Expand Down Expand Up @@ -168,13 +165,13 @@ export async function runBitbucket(cfg: BitbucketConfig): Promise<void> {
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,
Expand Down

0 comments on commit 65165dc

Please sign in to comment.