| Option | Description |
|---|---|
-f, --format <format> |
Output format: json, plain, minimal (default: plain) |
-o, --output <file> |
Write output to file |
-w, --workspace <workspace> |
Bitbucket workspace (overrides env) |
List repositories in workspace.
bb repo list
bb repo list -l 50 # limit to 50
bb repo list -n myrepo # filter by name
bb repo list -p 2 # page 2| Option | Description |
|---|---|
-l, --limit <n> |
Number of results (default: 10) |
-p, --page <n> |
Page number |
-n, --name <name> |
Filter by name |
List pull requests.
bb pr list my-repo
bb pr list my-repo -s MERGED # merged PRs
bb pr list my-repo -l 50 # limit 50| Option | Description |
|---|---|
-s, --state <state> |
Filter: OPEN, MERGED, DECLINED (default: OPEN) |
-l, --limit <n> |
Number of results (default: 10) |
-p, --page <n> |
Page number |
Get PR details.
bb pr get my-repo 123
bb pr get my-repo 123 --fields title,state,author| Option | Description |
|---|---|
--fields <fields> |
Comma-separated fields to show |
Get PR diff.
bb pr diff my-repo 123
bb pr diff my-repo 123 -f src/index.ts # specific file
bb pr diff my-repo 123 -l 500 # limit lines
bb pr diff my-repo 123 --stat-only # only stats| Option | Description |
|---|---|
-f, --file <path> |
Filter to specific file |
-l, --lines <n> |
Limit output lines |
--stat-only |
Show only file change stats |
Get PR comments.
bb pr comments my-repo 123
bb pr comments my-repo 123 --inline-only| Option | Description |
|---|---|
-l, --limit <n> |
Number of results (default: 20) |
-p, --page <n> |
Page number |
--inline-only |
Only inline comments |
Add comment to PR.
bb pr comment my-repo 123 "LGTM!"
bb pr comment my-repo 123 "Fix this" -f src/index.ts -l 42 # inline| Option | Description |
|---|---|
-f, --file <path> |
File path for inline comment |
-l, --line <n> |
Line number for inline comment |
Get PR activity.
bb pr activity my-repo 123
bb pr activity my-repo 123 -t approval # only approvals| Option | Description |
|---|---|
-l, --limit <n> |
Number of results (default: 20) |
-p, --page <n> |
Page number |
-t, --type <type> |
Filter: approval, comment, update |
Get PR commits.
bb pr commits my-repo 123| Option | Description |
|---|---|
-l, --limit <n> |
Number of results (default: 20) |
Add draft/pending comment.
bb pr add-pending my-repo 123 "Draft comment"
bb pr add-pending my-repo 123 "Review" -f src/index.ts -l 10| Option | Description |
|---|---|
-f, --file <path> |
File path for inline |
-l, --line <n> |
Line in new file |
--from <n> |
Line in old file (deletions) |
Update existing comment.
bb pr update-comment my-repo 123 456 "Updated text"Delete a comment.
bb pr delete-comment my-repo 123 456Resolve comment thread.
bb pr resolve-comment my-repo 123 456Reopen resolved comment.
bb pr reopen-comment my-repo 123 456