Skip to content

Review and Merge

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.

Terminal window
bb pr merge <id> [options]
ArgumentDescription
idPull request ID
OptionDescription
-w, --workspace <workspace>Workspace
-r, --repo <repo>Repository
-m, --message <message>Merge commit message
--close-source-branchDelete source branch after merge
--strategy <strategy>Merge strategy: merge_commit, squash, fast_forward
--jsonOutput as JSON
Terminal window
# Merge PR #42
bb pr merge 42
# 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.

Terminal window
bb pr approve <id> [options]
ArgumentDescription
idPull request ID
OptionDescription
-w, --workspace <workspace>Workspace
-r, --repo <repo>Repository
--jsonOutput as JSON
Terminal window
# Approve PR in current repository
bb pr approve 42
# Approve PR in specific repository
bb pr approve 42 -w myworkspace -r myrepo

Decline a pull request.

Terminal window
bb pr decline <id> [options]
ArgumentDescription
idPull request ID
OptionDescription
-w, --workspace <workspace>Workspace
-r, --repo <repo>Repository
--jsonOutput as JSON
Terminal window
# Decline PR in current repository
bb pr decline 42
# Decline PR in specific repository
bb pr decline 42 -w myworkspace -r myrepo

Mark a draft pull request as ready for review.

Terminal window
bb pr ready <id> [options]
ArgumentDescription
idPull request ID
OptionDescription
-w, --workspace <workspace>Workspace
-r, --repo <repo>Repository
--jsonOutput as JSON
Terminal window
# Mark draft PR as ready
bb pr ready 42
# Mark draft PR in specific repository
bb pr ready 42 -w myworkspace -r myrepo