-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Labels
bugSomething isn't workingSomething isn't workinggh-searchrelating to the gh search commandrelating to the gh search commandp2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions
Description
Describe the bug
Same query for gh search code should probably work both in terminal and web?
This works and returns examples:
$ gh search code --extension nix "karabiner-elements"
But when adding --web it doesn't show any results because extension doesn't work in web:
$ gh search code --extension nix "karabiner-elements" --web
Affected version
$ gh version
gh version 2.73.0 (nixpkgs)
https://github.com/cli/cli/releases/tag/v2.73.0
Steps to reproduce the behavior
- Type this:
gh search code --extension nix "karabiner-elements" --web
- It then opens this link: https://github.com/search?q=karabiner-elements+extension%3Anix&type=code
- Where I can see this error:
Expected vs actual behavior
If the web search query would not use extension:nix but path:*.nix it would work correctly.
andyfeller
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggh-searchrelating to the gh search commandrelating to the gh search commandp2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions