From 6ae88404549bd0abccb5937d01d946049c2e9191 Mon Sep 17 00:00:00 2001 From: Aaron Czechowski Date: Thu, 29 Dec 2022 16:35:09 -0800 Subject: [PATCH 1/2] add example to search by not author --- .../searching-on-github/searching-issues-and-pull-requests.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/search-github/searching-on-github/searching-issues-and-pull-requests.md b/content/search-github/searching-on-github/searching-issues-and-pull-requests.md index 71105cabcd25..1eecdf2e752b 100644 --- a/content/search-github/searching-on-github/searching-issues-and-pull-requests.md +++ b/content/search-github/searching-on-github/searching-issues-and-pull-requests.md @@ -102,6 +102,7 @@ The `author` qualifier finds issues and pull requests created by a certain user | author:USERNAME | [**cool author:gjtorikian**](https://github.com/search?q=cool+author%3Agjtorikian&type=Issues) matches issues and pull requests with the word "cool" that were created by @gjtorikian. | | [**bootstrap in:body author:mdo**](https://github.com/search?q=bootstrap+in%3Abody+author%3Amdo&type=Issues) matches issues written by @mdo that contain the word "bootstrap" in the body. | author:app/USERNAME | [**author:app/robot**](https://github.com/search?q=author%3Aapp%2Frobot&type=Issues) matches issues created by the integration account named "robot." +| -author:USERNAME | [**-author:app/robot**](https://github.com/search?q=-author%3Aapp%2Frobot&type=Issues) matches issues created by any user other than the account named "robot." The minus sign, or dash character (-) before the qualifier signifies a logical NOT for the qualifier in the search query. ## Search by assignee From 47aaabcb6f751f61d45eec7aeb9f3cd34971c183 Mon Sep 17 00:00:00 2001 From: Felicity Chapman Date: Tue, 24 Jan 2023 15:43:47 +0000 Subject: [PATCH 2/2] Add a new tip and minor changes to new row --- .../searching-on-github/searching-issues-and-pull-requests.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/search-github/searching-on-github/searching-issues-and-pull-requests.md b/content/search-github/searching-on-github/searching-issues-and-pull-requests.md index 1eecdf2e752b..4d5091741c91 100644 --- a/content/search-github/searching-on-github/searching-issues-and-pull-requests.md +++ b/content/search-github/searching-on-github/searching-issues-and-pull-requests.md @@ -23,6 +23,7 @@ You can search for issues and pull requests globally across all of {% data varia - This article contains example searches on the {% data variables.product.prodname_dotcom %}.com website, but you can use the same search filters on {% data variables.location.product_location %}.{% endif %} - For a list of search syntaxes that you can add to any search qualifier to further improve your results, see "[Understanding the search syntax](/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax)". - Use quotations around multi-word search terms. For example, if you want to search for issues with the label "In progress," you'd search for `label:"in progress"`. Search is not case sensitive. + - Use a minus (hyphen) symbol to exclude results that match a qualifier. For example, to ignore issues created by the "octocat" user, you'd use `-author:octocat` in your search. - {% data reusables.search.search_issues_and_pull_requests_shortcut %} {% endtip %} @@ -102,7 +103,7 @@ The `author` qualifier finds issues and pull requests created by a certain user | author:USERNAME | [**cool author:gjtorikian**](https://github.com/search?q=cool+author%3Agjtorikian&type=Issues) matches issues and pull requests with the word "cool" that were created by @gjtorikian. | | [**bootstrap in:body author:mdo**](https://github.com/search?q=bootstrap+in%3Abody+author%3Amdo&type=Issues) matches issues written by @mdo that contain the word "bootstrap" in the body. | author:app/USERNAME | [**author:app/robot**](https://github.com/search?q=author%3Aapp%2Frobot&type=Issues) matches issues created by the integration account named "robot." -| -author:USERNAME | [**-author:app/robot**](https://github.com/search?q=-author%3Aapp%2Frobot&type=Issues) matches issues created by any user other than the account named "robot." The minus sign, or dash character (-) before the qualifier signifies a logical NOT for the qualifier in the search query. +| | [**-author:app/robot**](https://github.com/search?q=-author%3Aapp%2Frobot&type=Issues) matches issues created by any user other than the integration account named "robot." The minus sign, or dash character (-) before the qualifier signifies a logical NOT for the qualifier in the search query. ## Search by assignee