All appsCode Repositories

Bitbucket integration

Automate Bitbucket, Atlassian's Git hosting: browse repositories and pull requests, create or delete branches, and start a workflow on a new pull request or commit, with an API token.

Lodol's Bitbucket connector gives your workflows 17 actions and 10 triggers, and links Bitbucket with 3,400+ other apps.

actions
17
triggers
10

Triggers

Start a workflow when something happens in Bitbucket.

  • New pull requestRuns for each pull request opened in a Bitbucket repository, with its title, branches and who opened it. Pull requests already there when the workflow is turned on don't start it. How often it checks follows your workspace plan.
  • New commitRuns for each commit pushed to a Bitbucket repository, or to one branch of it, with its message and author. Commits already there when the workflow is turned on don't start it, and a push of more than 100 commits at once runs for the newest 100. How often it checks follows your workspace plan.
  • Pull request mergedRuns for each pull request merged in a Bitbucket repository. Ones merged before the workflow is turned on don't start it. How often it checks follows your workspace plan.
  • Pull request declinedRuns for each pull request declined in a Bitbucket repository. Ones declined before the workflow is turned on don't start it. How often it checks follows your workspace plan.
  • Pull request updatedRuns each time a pull request in a Bitbucket repository changes after it was opened: new commits, its title or description, its reviewers, a comment or approval, or being merged or declined. Several changes between two checks run it once. How often it checks follows your workspace plan.
  • Pull request approvedRuns each time someone approves a pull request in a Bitbucket repository, with who approved it. Approvals from before the workflow is turned on don't start it. How often it checks follows your workspace plan.
  • New pull request commentRuns for each comment added to a pull request in a Bitbucket repository, with its text and who wrote it. Comments from before the workflow is turned on don't start it. How often it checks follows your workspace plan.
  • New forkRuns for each new fork of a Bitbucket repository, with who made it. Forks already there when the workflow is turned on don't start it. How often it checks follows your workspace plan.
  • Build status changedRuns when a build or check reports on one of a Bitbucket repository's newest commits, and again each time its state changes, such as from in progress to successful or failed. It watches the newest 10 commits. How often it checks follows your workspace plan.
  • New commit commentRuns for each comment added to one of a Bitbucket repository's newest 10 commits, with its text and who wrote it. Comments from before the workflow is turned on don't start it. How often it checks follows your workspace plan.

Actions

Steps a workflow can run in Bitbucket.

  • Get current userGet the Atlassian account the connected API token belongs to, useful for verifying the connected account.
  • List repositoriesList the repositories in a workspace that the connected account can access, most recently updated first.
  • Create branchCreate a new branch in a repository, based on an existing branch (defaulting to the main branch) or a specific commit.
  • Delete branchDelete a branch from a repository.
  • List pull requestsList a repository's pull requests, filtered by state and most recently updated first.
  • Get repositoryGet one repository's details: its name, description, main branch, whether it's private and its link.
  • List branchesList a repository's branches, most recently committed to first, up to 100.
  • List commitsList the newest commits on a branch, or on every branch, newest first.
  • Get pull requestGet one pull request's title, description, state and branches.
  • Create pull requestOpen a pull request from one branch into another (the repository's main branch unless you choose one), as the connected account.
  • Update pull requestChange a pull request's title, description or the branch it goes into. Fields left empty stay as they are.
  • Approve pull requestApprove a pull request as the connected account. Bitbucket doesn't let you approve a pull request you opened.
  • Remove approvalTake back the connected account's approval of a pull request.
  • Decline pull requestDecline (close without merging) a pull request.
  • Merge pull requestMerge a pull request into its target branch. If that branch has a merge queue, Bitbucket queues it instead and the step says so.
  • Comment on pull requestPost a comment on a pull request as the connected account. Everyone who can see the repository can read it.
  • List pull request commentsList the comments on a pull request, oldest first.

Send Bitbucket data to PostgreSQL, Amazon Redshift and other databases

Keep a copy of your Bitbucket data where you query and report on it. When something happens in Bitbucket, its trigger starts the workflow and the next step writes the record to your database, warehouse or Power BI, every time, with no export to run.

Automate Bitbucket with Lodol.

Connect Bitbucket, then hand Lodol the job in Slack, Claude or ChatGPT.

Free plan, no credit card