Bitbucket

Bitbucket logo

Bitbucket

Configuration

Bitbucket source connector integrates with the Bitbucket REST API to extract data.

Connects to your Bitbucket workspaces and repositories.

It supports syncing workspaces, repositories, directories, and code files with configurable filtering options for branches and file types.

Authentication

This connector uses a custom authentication configuration.

Authentication Configuration

Bitbucket authentication credentials schema.

username
strRequired

Your Bitbucket username

app_password
strRequired

Bitbucket app password with repository read permissions

workspace
strRequired

Bitbucket workspace slug (e.g., ‘my-workspace’)

repo_slug
Optional[str]

Specific repository to sync (e.g., ‘my-repo’). If empty, syncs all repositories in the workspace.

Configuration Options

The following configuration options are available for this connector:

Configuration Parameters

Bitbucket configuration schema.

branch
str

Specific branch to sync (e.g., ‘main’, ‘develop’). If empty, uses the default branch.

file_extensions
list[str]Defaults to []

List of file extensions to include (e.g., ‘.py’, ‘.js’, ‘.md’). If empty, includes all text files. Use ’.*’ to include all files.

Data Models

The following data models are available for this connector:

Schema for Bitbucket workspace entity.

FieldTypeDescription
slugstrWorkspace slug identifier
namestrWorkspace display name
uuidstrWorkspace UUID
is_privateboolWhether the workspace is private
created_onOptional[datetime]Creation timestamp

Schema for Bitbucket repository entity.

FieldTypeDescription
namestrRepository name
slugstrRepository slug
full_namestrFull repository name including workspace
descriptionOptional[str]Repository description
is_privateboolWhether the repository is private
fork_policyOptional[str]Fork policy of the repository
languageOptional[str]Primary language of the repository
created_ondatetimeCreation timestamp
updated_ondatetimeLast update timestamp
sizeOptional[int]Size of the repository in bytes
mainbranchOptional[str]Main branch name
workspace_slugstrSlug of the parent workspace

Schema for Bitbucket directory entity.

FieldTypeDescription
pathstrPath of the directory within the repository
repo_slugstrSlug of the repository containing this directory
repo_full_namestrFull name of the repository
workspace_slugstrSlug of the workspace

Schema for Bitbucket code file entity.

FieldTypeDescription
commit_hashOptional[str]Commit hash of the file version
pathstrPath of the file within the repository
repo_slugstrSlug of the repository
repo_full_namestrFull name of the repository
workspace_slugstrSlug of the workspace