Bitbucket capabilities in Teamwork Graph CLI

This page lists the capabilities your AI coding agent has with Bitbucket through TWG CLI. Use these prompts to explore repos, review pull requests, check pipelines, and trace deployments — all in plain English from your coding environment.

Before you begin

Bitbucket requires a Bitbucket API token as well as your Atlassian API token. You set this up when you run twg login. See Get started with TWG CLI.

What your agent can do

Use case

Example prompt

Show your open pull requests — View pull requests you've authored, so you can quickly see what's waiting for review.

"Show pull requests I authored this week."

Review a pull request — Get a summary of changes in a pull request, so you can understand what changed before approving.

"Summarise the changes in PR #42 in the platform-api repo."

Create a pull request — Create a new pull request between branches, so you can submit code for review without opening Bitbucket.

"Create a pull request from feature/login-fix to main in the auth-service repo."

Approve a pull request — Approve a pull request, so you can unblock your teammates from your editor.

"Approve PR #42 in platform-api."

Comment on a pull request — Add review comments to a pull request, so you can share feedback without switching tools.

"Add a comment to PR #42: looks good, just fix the test."

Check pipelines — See the status and history of your pipelines, so you can monitor builds and deployments.

"What deployments happened this week?"

Get pipeline logs — Retrieve logs for pipeline runs, so you can debug build failures directly from your editor.

"Show the logs for pipeline run 123 in auth-service."

Explore a repository — List repositories and recent commits, so you can understand what changed and where.

"List the recent commits in the auth-service repo."

Find commits by person — Filter commits by author, so you can track contributions or investigate changes.

"Show me commits by [name] in the past 2 weeks."

List branches — See all branches in a repository, so you can review active work streams.

"What branches exist in the platform-api repo?"

Create a branch — Create a new branch from an existing one, so you can start new work quickly.

"Create a branch called feature/dark-mode from main in the frontend repo."

Check deployment environments — View deployment target environments, so you can confirm where your service is running.

"What are the deployment environments for the auth-service?"

Rank contributors — Identify top contributors to a repository, so you can find domain experts or recognise contributors.

"Who are the top contributors to the auth-service repo?"

Browse workspaces and repositories — List workspaces and their repositories, so you can discover projects across your organisation.

"List repositories in the platform workspace."

Still need help?

The Atlassian Community is here for you.