Manage pull request reviewers.
Global options available on all PR commands: --json, --no-color, -w, --workspace, -r, --repo.
| Subcommand | Description |
|---|
list <id> | List reviewers on a pull request |
add <id> <username> | Add a reviewer to a pull request |
remove <id> <username> | Remove a reviewer from a pull request |
List reviewers assigned to a pull request.
bb pr reviewers list <id>
| Argument | Description |
|---|
id | Pull request ID |
| Option | Description |
|---|
-w, --workspace <workspace> | Workspace |
-r, --repo <repo> | Repository |
--json | Output as JSON |
# List reviewers on PR #42
# List reviewers in specific repository
bb pr reviewers list 42 -w myworkspace -r myrepo
# Get reviewers as JSON for scripting
bb pr reviewers list 42 --json
- Displays reviewers in a table with display name and account ID
- Shows a message if no reviewers are assigned
- Due to Bitbucket Cloud GDPR changes, the deprecated
username field is not displayed
Add a reviewer to a pull request by username.
bb pr reviewers add <id> <username>
| Argument | Description |
|---|
id | Pull request ID |
username | Username of the user to add as reviewer |
| Option | Description |
|---|
-w, --workspace <workspace> | Workspace |
-r, --repo <repo> | Repository |
--json | Output as JSON |
# Add johndoe as reviewer to PR #42
bb pr reviewers add 42 johndoe
# Add reviewer in specific repository
bb pr reviewers add 42 johndoe -w myworkspace -r myrepo
# Add reviewer and get result as JSON
bb pr reviewers add 42 johndoe --json
- The user must exist in Bitbucket; you’ll get a clear error message if the user is not found
- If the user is already a reviewer, the command succeeds without making changes
- Uses UUID for identification (GDPR-compliant)
Remove a reviewer from a pull request.
bb pr reviewers remove <id> <username>
| Argument | Description |
|---|
id | Pull request ID |
username | Username of the reviewer to remove |
| Option | Description |
|---|
-w, --workspace <workspace> | Workspace |
-r, --repo <repo> | Repository |
--json | Output as JSON |
# Remove johndoe as reviewer from PR #42
bb pr reviewers remove 42 johndoe
# Remove reviewer in specific repository
bb pr reviewers remove 42 johndoe -w myworkspace -r myrepo
# Remove reviewer and get result as JSON
bb pr reviewers remove 42 johndoe --json
- The user must exist in Bitbucket; you’ll get a clear error message if the user is not found
- If the user is not a reviewer on the PR, the command succeeds without making changes
- Uses UUID for identification (GDPR-compliant)