Skip to content

CLI: add but pr open to open review URL in browser#12880

Open
mvanhorn wants to merge 1 commit intogitbutlerapp:masterfrom
mvanhorn:feat/cli-pr-open
Open

CLI: add but pr open to open review URL in browser#12880
mvanhorn wants to merge 1 commit intogitbutlerapp:masterfrom
mvanhorn:feat/cli-pr-open

Conversation

@mvanhorn
Copy link

Summary

  • Adds but pr open subcommand that opens the review URL in the default web browser
  • Supports the same selector syntax as other PR subcommands (branch names, branch IDs, stack IDs, review numbers)
  • When no selector is provided, prompts the user to choose from reviews in the workspace
  • Includes human-readable output with colored URL and review number, plus JSON output for scripting

Closes #12340

Test plan

  • cargo build -p but passes
  • cargo clippy -p but --all-targets passes with no warnings
  • cargo fmt --check -p but passes
  • cargo test -p but passes (one pre-existing failure in reword unrelated to this change)

🤖 Generated with Claude Code

Adds a new `open` subcommand to `but pr` that opens the review URL
in the default web browser. Supports the same selector syntax as
other PR subcommands (branch names, IDs, stack IDs, review numbers).
When no selector is provided, prompts the user to choose from reviews
in the workspace.

Closes gitbutlerapp#12340

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 17, 2026

@mvanhorn is attempting to deploy a commit to the GitButler Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: support for opening pr in browser

1 participant