Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAI-12269 Conform to new Bitbucket spec #357

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading