Skip to content

Commit da68298

Browse files
committed
Update pull-request.md
1 parent 45a5055 commit da68298

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

docs/commands/pull-request.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,45 @@ All commands for pull request.
4141
`bb pr files <pr-id>` List changed files in a pull request (diffstat).
4242

4343
## Create
44-
`bb pr create <from-branch> <to-branch> [add-default-reviewers]` Create pull request from one branch to another. If only one branch is given, creates PR from current branch to given branch. You can pass multiple destination branches separated by comma: `bb pr create dev test,staging`. Default reviewers are added automatically, pass `0` as third parameter to skip: `bb pr create dev test 0`.
44+
`bb pr create <target-branch> [source-branch] [options]` Create pull request. If `source-branch` is omitted, the current branch is used as source.
45+
46+
### Options
47+
48+
| Flag | Description |
49+
|---|---|
50+
| `-i` | Interactive mode — prompts for missing title and/or description |
51+
| `--title "..."` | Set the PR title (non-interactive) |
52+
| `--description "..."` | Set the PR description (non-interactive) |
53+
54+
### Usage Examples
55+
56+
**Fully non-interactive (CI-safe, default behavior):**
57+
```bash
58+
bb pr create develop
59+
```
60+
61+
**Interactive mode — prompts for title and description:**
62+
```bash
63+
bb pr create develop -i
64+
```
65+
66+
**Non-interactive with custom title and description:**
67+
```bash
68+
bb pr create develop --title "Fix login bug" --description "Resolves timeout issue on auth endpoint"
69+
```
70+
71+
**Mixed — provide some flags, prompt for the rest:**
72+
```bash
73+
bb pr create develop -i --title "Fix login bug"
74+
```
75+
Uses the provided title and only prompts for the missing description.
76+
77+
**Multiple target branches:**
78+
```bash
79+
bb pr create develop,staging,main
80+
```
81+
82+
Default reviewers are added automatically. Pass `0` as third parameter to skip: `bb pr create develop test 0`.
4583

4684
## Show
4785
`bb pr show <pr-id> [unresolved]` View pull request comments including both general and inline code comments. Add `unresolved` (or `true`) as second parameter to show only unresolved inline comments.

0 commit comments

Comments
 (0)