Skip to content

Commit 8955ee6

Browse files
harryfrzzManagordmmqz
authored
gh-search: add page (#18339)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
1 parent f64ff71 commit 8955ee6

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pages/common/gh-search.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# gh search
2+
3+
> Search across all of GitHub.
4+
> More information: <https://cli.github.com/manual/gh_search>.
5+
6+
- Search for code containing specific keywords:
7+
8+
`gh search code {{keyword1 keyword2 ...}}`
9+
10+
- Search for issues with a specific phrase:
11+
12+
`gh search issues "{{search_phrase}}"`
13+
14+
- Search commits by a specific author:
15+
16+
`gh search commits --author {{username}}`
17+
18+
- Search pull requests assigned to yourself that are still open:
19+
20+
`gh search prs --assignee @me --state open`
21+
22+
- Search repositories in an organization by topic:
23+
24+
`gh search repos --owner {{org_name}} --topic {{topic_name}}`
25+
26+
- Search issues without a certain label (Unix-like systems):
27+
28+
`gh search issues -- "{{search_query}} -label:{{label_name}}"`
29+
30+
- Search issues without a certain label (PowerShell):
31+
32+
`gh --% search issues -- "{{search_query}} -label:{{label_name}}"`
33+
34+
- Open the search query in the web browser:
35+
36+
`gh search {{subcommand}} {{[-w|--web]}} {{query}}`

0 commit comments

Comments
 (0)