Skip to content

Commit a89d547

Browse files
saritaimchammer01
andauthored
Clarify in the docs that you need to be logged in to use code search (github#37454)
Co-authored-by: mc <[email protected]>
1 parent 4708c5b commit a89d547

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

content/search-github/github-code-search/about-github-code-search.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ topics:
1414

1515
Code search is integrated with features in the search interface on {% data variables.product.prodname_dotcom_the_website %}, such as suggestions, completions, and the ability to save your searches. For more information, see "[AUTOTITLE](/search-github/github-code-search/using-github-code-search)."
1616

17+
{% data reusables.search.code-search-login-requirement %}
18+
1719
{% data reusables.search.non-code-search-explanation %}
1820

1921
## Limitations

content/search-github/github-code-search/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: GitHub Code Search
3-
intro: 'You can use a wide range of syntax to search {% data variables.product.product_name %}. You can adjust the scope of your search, build and troubleshoot queries, and narrow down search results with qualifiers.'
3+
intro: 'Learn how to use code search to find, navigate, and understand code across {% data variables.product.prodname_dotcom %}.'
44
allowTitleToDifferFromFilename: true
55
versions:
66
feature: code-search-code-view

content/search-github/github-code-search/using-github-code-search.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ topics:
1414

1515
Not all code is indexed, and you can currently only search the default branches of repositories. For more information on known limitations, see "[AUTOTITLE](/search-github/github-code-search/about-github-code-search#limitations)."
1616

17+
{% data reusables.search.code-search-login-requirement %}
18+
1719
## Using the search bar
1820

1921
You can search using the search interface on {% data variables.product.prodname_dotcom_the_website %}. Using suggestions, completions, and saved searches, you can quickly find what you are looking for, often without having to fully type a query or view the search results page.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
You must be logged in to a {% data variables.product.prodname_dotcom %} account to use code search, including for searching code in public repositories.

0 commit comments

Comments
 (0)