Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 40 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bb-cli"
version = "0.3.7"
version = "0.3.8"
edition = "2024"

[dependencies]
Expand All @@ -19,6 +19,7 @@ tokio = { version = "1.48.0", features = ["full"] }
toml_edit = "0.23.7"
similar = { version = "2.7", features = ["inline"] }
dialoguer = "0.12.0"
glob = "0.3.3"

[[bin]]
name = "bb"
Expand Down
80 changes: 79 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bbcli v0.3.7
# bbcli v0.3.8

Bitbucket CLI is a command line interface for interacting with Bitbucket.

Expand Down Expand Up @@ -81,6 +81,84 @@ bb repo list
bb repo list --limit 20
```

### Pull Requests

List pull requests:

```bash
bb pr list
```

View a pull request (auto-detected from branch or by ID):

```bash
bb pr view
bb pr view 123
```

**View Diff with Filtering:**

You can filter the diff by file patterns or size.

**Inferred Context (Current Branch):**

```bash
# Filter by file extension
bb pr diff "*.rs"

# Filter by directory
bb pr diff src/commands/
```

**Manual Context (Explicit ID):**

```bash
# Filter by specific file for PR #123
bb pr diff 123 src/main.rs

# Skip large files for PR #123
bb pr diff 123 --max-diff-size 100
```

**Review a Pull Request:**

Start an interactive review or submit immediately with flags.

**Inferred Context (Current Branch):**

```bash
# Interactive mode
bb pr review

# Approve immediately
bb pr review --approve
```

**Manual Context (Explicit ID):**

```bash
# Interactive mode for PR #123
bb pr review 123

# Request changes for PR #123
bb pr review 123 --request-changes

# Comment on PR #123
bb pr review 123 --comment --body "Great work!"
```

**Override Repository:**

You can run any command against a specific repository using `-R`:

```bash
# List PRs in a different repo
bb pr list -R my-workspace/other-repo

# View PR #123 in a different repo
bb pr view 123 -R my-workspace/other-repo
```

### Configuration

View your current configuration (active profile and local overrides):
Expand Down
Loading