Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/cmd/search/code/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions pkg/cmd/search/commits/commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions pkg/cmd/search/issues/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions pkg/cmd/search/prs/prs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions pkg/cmd/search/repos/repos.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading