All connectors
Bitbucket integration
Bitbucket is a Git-based code hosting and collaboration platform supporting private and public repositories, enabling teams to manage and review code through pull requests and integrations
Connect Bitbucket to Xenition and work with it from chat, from an agent, or on a schedule — alongside every other app you have connected, in one workspace.
What you can do with Bitbucket
Ask in plain language and Xenition calls the right one:
- Approve Pull Request — Tool to approve a pull request as the authenticated user. Use when you need to formally approve changes in a pull request review process.
- Browse repository path — Tool to retrieve content for a file path or browse directory contents at a specified revision in a Bitbucket repository. Use when you need flexible access to repository content - returns raw file data for files or paginated directory listings for directories.
- Create a branch — Creates a new branch in a Bitbucket repository from a target commit hash; the branch name must be unique, adhere to Bitbucket's naming conventions, and not include the 'refs/heads/' prefix.
- Create an issue — Creates a new issue in a Bitbucket repository, setting the authenticated user as reporter; ensures assignee (if provided) has repository access, and that any specified milestone, version, or component IDs exist.
- Create an issue comment — Adds a new comment with markdown support to an existing Bitbucket issue.
- Create a pull request — Creates a new pull request in a specified Bitbucket repository, ensuring the source branch exists and is distinct from the (optional) destination branch.
- Create pull request comment — Creates a new comment on a Bitbucket pull request. Supports top-level comments, threaded replies, and inline code comments. Use when providing feedback on a PR, replying to existing comments, or commenting on specific code lines.
- List commits from revision (POST) — Tool to list commits from a revision using POST method. Identical to GET endpoint but allows sending include/exclude parameters in request body to avoid URL length limits. Use when include/exclude parameters are too long for query strings.
- Create commit report annotations — Adds multiple annotations to a commit report in bulk. Use when you need to add code analysis findings (vulnerabilities, code smells, bugs) to a report attached to a specific commit.
- Create repository — Creates a new Bitbucket 'git' repository in a specified workspace, defaulting to the workspace's oldest project if `project_key` is not provided.
- Create snippet comment — Posts a new top-level comment or a threaded reply to an existing comment on a specified Bitbucket snippet.
- Create team pipeline variable — Creates a team-level pipeline configuration variable in Bitbucket. Use when you need to add environment variables or configuration values that should be available to all pipelines within a team.
- Create user pipeline variable — Creates a user-level pipeline variable for Bitbucket pipelines. Use when you need to create account-level configuration variables that can be used across all repositories owned by the user.
- Decline Pull Request — Decline a Bitbucket Cloud pull request via the REST API. Use this action when you need to reject a pull request that should not be merged. This action is irreversible — once declined, the pull request cannot be reopened and must be recreated if needed.
- Delete commit comment — Permanently deletes a specific comment on a commit. Use when removing outdated, incorrect, or unwanted feedback on a commit.
- Delete issue — Permanently deletes a specific issue, identified by its `issue_id`, from the repository specified by `repo_slug` within the given `workspace`.
- Delete pull request comment — Permanently deletes a specific pull request comment (top-level, inline, or threaded reply). Use when removing outdated, incorrect, or unwanted feedback from a pull request.
- Delete commit report annotation — Deletes a single annotation matching the provided ID from a commit report. Use when you need to remove a specific annotation from a code analysis report.
- Delete repository — Permanently deletes a specified Bitbucket repository; this action is irreversible and does not affect forks.
- Delete snippet watch — Stops watching a specific snippet. Use when you want to unsubscribe from notifications for a snippet.
- Delete user pipeline variable — Permanently deletes a user-level pipeline configuration variable identified by its UUID. Use this to remove pipeline variables that are no longer needed at the account level.
- Get branch — Retrieves detailed information about a specific branch in a Bitbucket repository. Use when you need to get branch metadata, the commit it points to, or verify a branch exists.
- Get Commit Build Status — Get a specific build status for a commit in Bitbucket. Use when you need to check the status of a particular build/CI run for a commit.
- Get Commit Changes — Tool to retrieve a page of changes made in a specified commit, showing all changed files with their change statistics (lines added/removed, status). Use when you need to enumerate files modified in a specific commit or commit range.
- Get commit comment — Retrieves a specific comment from a commit by its ID. Use when you need to fetch details of a particular commit comment including content, author, timestamps, and inline location.
- Get Commit Diff — Tool to retrieve the unified diff between two provided revisions or for a single commit in a Bitbucket repository. Use when you need to see the actual code changes in a commit or between two commits. Supports filtering by file path and various diff options.
- Get current user (v2) — Tool to retrieve complete profile information for the currently authenticated Bitbucket user. Use when you need comprehensive user details including account_id, username, nickname, and other profile fields.
- Get deployment environment variables — Retrieves deployment environment level variables for a specific Bitbucket repository environment. Use when you need to view or audit environment-specific configuration variables for deployments.
- Get file from repository — Retrieves a specific file's content from a Bitbucket repository at a given commit (hash, branch, or tag), failing if the file path is invalid for that commit.
- Get hook events — Retrieves a paginated list of all valid webhook events for a specified entity type (repository or workspace). Use when you need to discover available webhook event types for subscription or webhook configuration.
…and 20 more Bitbucket actions available in the workspace.
Give an agent access to Bitbucket
An agent you create can use Bitbucket on your behalf and keep working while you do something else. Every action an agent takes goes through an approval gate first, so nothing touches your Bitbucket account without you agreeing to it.
Other connectors
Frequently asked questions
How do I connect Bitbucket to Xenition?
Open the connectors directory in Xenition, find Bitbucket, and sign in when the authorisation window opens. The connection is managed for you — there is no API key to create, paste or rotate.
What can Xenition do with Bitbucket?
Xenition can run 50 different Bitbucket actions, including Approve Pull Request, Browse repository path, Create a branch. You ask in plain language and the right one is called for you.
Can an agent use Bitbucket on my behalf?
Yes. Agents can use Bitbucket while you do something else, and every action passes through an approval gate before it runs.
Is there a free plan?
Yes. Xenition starts free with 25,000 credits a month and no credit card, and all connectors are available on every plan.