Skip to content

Commit 6c2ccb8

Browse files
authored
Add answered-by search qualifier for discussions (#34165)
1 parent 89e5072 commit 6c2ccb8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

content/search-github/searching-on-github/searching-discussions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ The `commenter` qualifier finds discussions that contain a comment from a certai
6363
| :- | :- |
6464
| <code>commenter:<em>USERNAME</em></code> | [**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.
6565

66+
## Search by user who has answered a discussion
67+
68+
The `answered-by` qualifier finds discussions where a certain user's comment was marked as an answer.
69+
70+
| Qualifier | Example |
71+
| :- | :- |
72+
| <code>answered-by:<em>USERNAME</em></code> | [**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. |
73+
6674
## Search by a user that's involved in a discussion
6775

6876
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.

0 commit comments

Comments
 (0)