我怎样才能找到 Github 用户的所有公开评论?

直到最近,我才能通过个人资料页面上的链接找到所有的公开评论。我使用这个功能来跟踪所有我评论过但没有贡献任何东西的问题。它在一个叫做“公共活动”的部分下面。

这个函数似乎已经被删除了。我在 关于个人资料的帮助页面上找不到任何关于它的信息。

有人知道这是什么时候,为什么被拿走的吗?

19491 次浏览

Since GitHub Universe 2016, the profile page has changed.

It still has a "Contribution activity" though, which includes your own comments. But you might need to click on "Show more activity" to see past the last few weeks.

And you can email yourself your own activity since last June: "Email updates about your own activity".

You can do this with an advanced search query. In the Issues search box, enter "commenter:username".

Or if you want to search a specific repo: "RepositoryName commenter:username".

This link is quite useful, it's a live feed of all issues you've commented.

https://github.com/notifications/subscriptions?reason=comment

enter image description here


Alternatively, this link is also helpful and is probably what the OP asked (issues where one has written comments):

https://github.com/search?l=&q=commenter%3AVadorequest+is%3Aissue&type=issues

Replace "Vadorequest" by the username you're looking for

You can also use the global search with commenter:Vadorequest is:issue to achieve the same result

enter image description here


Also, if you want to track discussions you participated in, this link might help:

https://github.com/search?l=&q=commenter%3AVadorequest&type=discussions

Replace "Vadorequest" by the username you're looking for

You can also use the global search with commenter:Vadorequest to achieve the same result

enter image description here


This 4th (and last) is not related to the OP's question, but might come in handy. It lists all PR you were requested as reviewer.

https://github.com/notifications/subscriptions?reason=review_requested

If you want a list of all issues where you either created them or were a commenter on them, this link works best:

https://github.com/notifications/subscriptions?reason=author,comment

Type involves:<username> in the search box on the GitHub's main page. This will find all the issues that the specified user commented on, was assigned to or mentioned in.

For example, if the user's name on GitHub is unclebob, the search query should look like:
involves:unclebob
Or when searching information about yourself if you're logged in to GitHub, simply:
involves:@me

Note, that unlike involves similar search qualifiers - author and commenter - will omit certain results from the search:

  • author will find only the issues that were started by the user; if the specified user comments on the issue that was started by someone else, author query won't return it in the search results.
    E.g., compare involves:unclebob and author:unclebob type:issue.

  • commenter will find only those issues where the specified user commented second or later (creator of the first comment in an issue is considered its author and not a commenter); if the user starts an issue and then never comments on it, the commenter query won't return it in the search results.
    E.g., compare involves:unclebob and commenter:unclebob.

In other words, when it comes to searching comments, author and commenter return only a subset of involves' results. So I recommend using involves not to miss anything.