Skip to content

Commit 54088ad

Browse files
jorendorfflook
andauthored
Cover searching code by enterprise: (#58231)
Co-authored-by: Luke Francl <[email protected]>
1 parent 14d3198 commit 54088ad

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

content/search-github/github-code-search/understanding-github-code-search-syntax.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ You can use parentheses to express more complicated boolean expressions. For exa
100100
You can use specialized keywords to qualify your search.
101101
* [Repository qualifier](#repository-qualifier)
102102
* [Organization and user qualifiers](#organization-and-user-qualifiers)
103+
* [Enterprise qualifier](#enterprise-qualifier)
103104
* [Language qualifier](#language-qualifier)
104105
* [Path qualifier](#path-qualifier)
105106
* [Symbol qualifier](#symbol-qualifier)
@@ -140,6 +141,16 @@ user:octocat
140141
> [!NOTE]
141142
> Code search does not currently support regular expressions or partial matching for organization or user names, so you will have to type the entire organization or user name for the qualifier to work.
142143
144+
### Enterprise qualifier
145+
146+
To search for files within an enterprise, use the `enterprise:` qualifier. For example:
147+
148+
```text
149+
enterprise:octocorp
150+
```
151+
152+
This searches repositories owned by organizations in the `octocorp` enterprise. User-owned repositories are not included.
153+
143154
### Language qualifier
144155

145156
To narrow down to a specific languages, use the `language:` qualifier. For example:

0 commit comments

Comments
 (0)