@ryan_nookpi/pi-extension-open-pr

Open the current branch pull request in your browser via GitHub CLI.

Package details

extension

Install @ryan_nookpi/pi-extension-open-pr from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@ryan_nookpi/pi-extension-open-pr
Package
@ryan_nookpi/pi-extension-open-pr
Version
0.1.0
Published
Apr 16, 2026
Downloads
130/mo · 8/wk
Author
ryan_nookpi
License
MIT
Types
extension
Size
5.8 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

open-pr

Open the current branch's pull request in your browser via GitHub CLI.

What it does

Registers a /open-pr command that:

  1. Detects the current git branch
  2. Looks up the associated PR using gh pr view --json url
  3. Opens the PR URL in your default browser

Works on macOS (open), Linux (xdg-open), and Windows (cmd /c start).

Prerequisites

  • GitHub CLI (gh) installed and authenticated
  • A git repository with a remote

Install

pi install npm:@ryan_nookpi/pi-extension-open-pr