diff --git a/pkg/cmd/search/code/code.go b/pkg/cmd/search/code/code.go index 7ef2a4193f0..b34691d83dc 100644 --- a/pkg/cmd/search/code/code.go +++ b/pkg/cmd/search/code/code.go @@ -56,6 +56,9 @@ func NewCmdCode(f *cmdutil.Factory, runF func(*CodeOptions) error) *cobra.Comman # Search code matching "error handling" $ gh search code "error handling" + # Search code using raw search qualifiers as separate arguments + $ gh search code panic path:pkg language:go + # Search code matching "deque" in Python files $ gh search code deque --language=python diff --git a/pkg/cmd/search/commits/commits.go b/pkg/cmd/search/commits/commits.go index 939109b65de..14af7c4256f 100644 --- a/pkg/cmd/search/commits/commits.go +++ b/pkg/cmd/search/commits/commits.go @@ -55,6 +55,9 @@ func NewCmdCommits(f *cmdutil.Factory, runF func(*CommitsOptions) error) *cobra. # Search commits matching phrase "bug fix" $ gh search commits "bug fix" + # Search commits using raw search qualifiers as separate arguments + $ gh search commits fix author:monalisa merge:false + # Search commits committed by user "monalisa" $ gh search commits --committer=monalisa diff --git a/pkg/cmd/search/issues/issues.go b/pkg/cmd/search/issues/issues.go index ffddb3e2668..cc4e7f78e5e 100644 --- a/pkg/cmd/search/issues/issues.go +++ b/pkg/cmd/search/issues/issues.go @@ -50,6 +50,9 @@ func NewCmdIssues(f *cmdutil.Factory, runF func(*shared.IssuesOptions) error) *c # Search issues matching phrase "broken feature" $ gh search issues "broken feature" + # Search issues using raw search qualifiers as separate arguments + $ gh search issues label:bug author:monalisa state:open + # Search issues and pull requests in cli organization $ gh search issues --include-prs --owner=cli diff --git a/pkg/cmd/search/prs/prs.go b/pkg/cmd/search/prs/prs.go index 34f1c7f565d..07ea9155312 100644 --- a/pkg/cmd/search/prs/prs.go +++ b/pkg/cmd/search/prs/prs.go @@ -52,6 +52,9 @@ func NewCmdPrs(f *cmdutil.Factory, runF func(*shared.IssuesOptions) error) *cobr # Search draft pull requests in cli repository $ gh search prs --repo=cli/cli --draft + # Search pull requests using raw search qualifiers as separate arguments + $ gh search prs is:merged author:monalisa + # Search open pull requests requesting your review $ gh search prs --review-requested=@me --state=open diff --git a/pkg/cmd/search/repos/repos.go b/pkg/cmd/search/repos/repos.go index 0a4275a87ca..254de8a12c5 100644 --- a/pkg/cmd/search/repos/repos.go +++ b/pkg/cmd/search/repos/repos.go @@ -56,6 +56,9 @@ func NewCmdRepos(f *cmdutil.Factory, runF func(*ReposOptions) error) *cobra.Comm # Search repositories matching phrase "vim plugin" $ gh search repos "vim plugin" + # Search repositories using raw search qualifiers as separate arguments + $ gh search repos topic:github 'stars:>5000' + # Search repositories public repos in the microsoft organization $ gh search repos --owner=microsoft --visibility=public