File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
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}} `
You can’t perform that action at this time.
0 commit comments