From 6c2ccb8bb31290c2a4013a6e36168c8afb7049ec Mon Sep 17 00:00:00 2001 From: antn Date: Tue, 24 Jan 2023 21:18:24 -0800 Subject: [PATCH] Add `answered-by` search qualifier for discussions (#34165) --- .../searching-on-github/searching-discussions.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/search-github/searching-on-github/searching-discussions.md b/content/search-github/searching-on-github/searching-discussions.md index 61b9de8ed6..18aa9bb3c7 100644 --- a/content/search-github/searching-on-github/searching-discussions.md +++ b/content/search-github/searching-on-github/searching-discussions.md @@ -63,6 +63,14 @@ The `commenter` qualifier finds discussions that contain a comment from a certai | :- | :- | | commenter:USERNAME | [**github commenter:becca org:github**](https://github.com/search?utf8=%E2%9C%93&q=github+commenter%3Abecca+org%3Agithub&type=Discussions) matches discussions in repositories owned by GitHub, that contain the word "github," and have a comment by @becca. +## Search by user who has answered a discussion + +The `answered-by` qualifier finds discussions where a certain user's comment was marked as an answer. + +| Qualifier | Example | +| :- | :- | +| answered-by:USERNAME | [**cool answered-by:octocat**](https://github.com/search?q=cool+author%3Aoctocat&type=Discussions) matches discussions with the word "cool" that were answered by @octocat. | + ## Search by a user that's involved in a discussion You can use the `involves` qualifier to find discussions that involve a certain user. The qualifier returns discussions that were either created by a certain user, mention the user, or contain comments by the user. The `involves` qualifier is a logical OR between the `author`, `mentions`, and `commenter` qualifiers for a single user.