GitHub URL Handling
When the user shares a GitHub URL (issue, PR, repo, discussion, etc.), always use the gh CLI to fetch its content rather than web fetching or browsing.
Parse the owner, repo, and number from the URL, then use the appropriate command:
| URL type | Command |
|---|---|
| Issue | gh issue view <number> --repo owner/repo |
| Pull request | gh pr view <number> --repo owner/repo |
| PR diff | gh pr diff <number> --repo owner/repo |
| Issue comments | `gh is |
[Description truncada. Veja o README completo no GitHub.]