> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tembo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Bitbucket

> Pull requests and code changes in your Bitbucket workspace.

![Bitbucket](https://mintcdn.com/test-8862363a/_KF7n4fDwDrxMgZe/images/integrations/bitbucket.png?fit=max\&auto=format\&n=_KF7n4fDwDrxMgZe\&q=85\&s=f896a54d9084c2a881370d690dbc0eab)

## Features

* Open pull requests with code changes
* Respond to PR feedback and iterate
* Draft PR support with automatic branch cleanup
* Multi-workspace repository sync

## Installation

**1. Create service user**

Create a dedicated Bitbucket account for Tembo using an email alias (`you+tembo@company.com`) or dedicated email. Invite it to your workspace.

**2. Install**

Go to **Settings > Integrations** and click **Install** next to Bitbucket. Log in as the Tembo service account.

**3. Activate**

Select which repositories Tembo should work with.

## Usage

### PR comments

Add `/tembo` in any pull request comment to request changes. Tembo reads the feedback, updates the code, and pushes new commits.

```
/tembo Please add error handling to this function
```

Works on PRs created by Tembo and PRs created by your team.

## Agents

See [Agents](https://docs.tembo.io/features/agents.md) for available Bitbucket event triggers.

## Advanced

> [accordion] Repositories not appearing
>
> Wait 2-5 minutes for initial sync. Click the sync button to refresh. Verify the service user has workspace access.

> [accordion] PRs not being created
>
> Check that the repository is activated and branch protection rules allow Tembo to create branches.

> [accordion] Authentication errors
>
> Ensure the service user has proper permissions and workspace membership. Try disconnecting and reconnecting.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.