Describe the bug
The -R of gh search code does not support repo url, but only supports OWNER/REPO format
Affected version
gh version 2.93.0 (2026-05-28)
https://github.com/cli/cli/releases/tag/v2.93.0
Steps to reproduce the behavior
- Run commands in log
Expected vs actual behavior
Expect both commands to output results
Logs
$ gh search code -R https://github.com/cli/cli catch-all
no code results matched your search
$ gh search code -R cli/cli catch-all
Showing 1 of 1 results
cli/cli internal/run/stub.go
Describe the bug
The
-Rofgh search codedoes not support repo url, but only supports OWNER/REPO formatAffected version
gh version 2.93.0 (2026-05-28)
https://github.com/cli/cli/releases/tag/v2.93.0
Steps to reproduce the behavior
Expected vs actual behavior
Expect both commands to output results
Logs