pr-chrome
Open a GitHub pull request in Google Chrome on the local Mac.
Procedure
- Resolve the PR URL with
gh(pass--repo owner/nameif not run from inside the repo):- Explicit PR number argument:
gh pr view <NUMBER> --json url -q .url - Otherwise the current branch's PR:
gh pr view --json url -q .url
- Explicit PR number argument:
- Open it in Chrome:
open -a "Google Chrome" "<url>" - Confirm with the URL that was opened.
Notes
- If the current branch has no PR,
gh pr viewexits non-zero — report that instead of guessing a URL. Only rungh pr createif the user asks. - macOS only (
open -a); requires Google Chrome to be installed.gh pr view --webwould respect the default browser instead, so this skill forces Chrome explicitly. - This opens the PR in the browser; to keep a stacked-PR series section in sync, use pr-stack.