Open a GitHub issue or PR in browser and optionally manage subscriptions. Use when navigating to GitHub resources from the terminal.
Open a GitHub issue or pull request in the browser using gh issue view --web or gh pr view --web.
Optionally subscribe or unsubscribe from notifications for the issue/PR.
Requirements:
git remote get-url originanthropics/claude-code if the context suggests Claude Code issuesgh issue view <number> -R <org/repo> --web for issuesgh pr view <number> -R <org/repo> --web for PRsSubscription management (optional):
notifications scope in your gh token
gh auth refresh -h github.com -s notificationsImplementation approach:
gh issue view <number> -R <org/repo> --webgh CLI will automatically open the URL in the default browserExamples:
/github:browse 8677 - Opens issue #8677 in the current/contextual repo/github:browse 8677 sub - Opens issue #8677 and subscribes to notifications/github:browse 8677 un - Opens issue #8677 and unsubscribes from notifications/github:browse - Extracts and opens the most recently discussed issue/PR numberNote: The gh CLI intelligently handles both issues and PRs with the same command when using gh issue view, so we can use that for both types.