Complete review and merge pull request workflows.
Global options available on all PR commands: --json, --no-color, -w, --workspace, -r, --repo.
Merge a pull request.
bb pr merge <id> [options]
| Argument | Description |
|---|
id | Pull request ID |
| Option | Description |
|---|
-w, --workspace <workspace> | Workspace |
-r, --repo <repo> | Repository |
-m, --message <message> | Merge commit message |
--close-source-branch | Delete source branch after merge |
--strategy <strategy> | Merge strategy: merge_commit, squash, fast_forward |
--json | Output as JSON |
# Merge with squash strategy and delete source branch
bb pr merge 42 --strategy squash --close-source-branch
# Merge with custom commit message
bb pr merge 42 -m "Merge feature: Add user authentication"
Approve a pull request.
bb pr approve <id> [options]
| Argument | Description |
|---|
id | Pull request ID |
| Option | Description |
|---|
-w, --workspace <workspace> | Workspace |
-r, --repo <repo> | Repository |
--json | Output as JSON |
# Approve PR in current repository
# Approve PR in specific repository
bb pr approve 42 -w myworkspace -r myrepo
Decline a pull request.
bb pr decline <id> [options]
| Argument | Description |
|---|
id | Pull request ID |
| Option | Description |
|---|
-w, --workspace <workspace> | Workspace |
-r, --repo <repo> | Repository |
--json | Output as JSON |
# Decline PR in current repository
# Decline PR in specific repository
bb pr decline 42 -w myworkspace -r myrepo
Mark a draft pull request as ready for review.
bb pr ready <id> [options]
| Argument | Description |
|---|
id | Pull request ID |
| Option | Description |
|---|
-w, --workspace <workspace> | Workspace |
-r, --repo <repo> | Repository |
--json | Output as JSON |
# Mark draft PR in specific repository
bb pr ready 42 -w myworkspace -r myrepo