'Search for issues on GitHub that have a comment by someone else than the author

As a way to keep track of issues and PRs on a GitHub repository that haven't been responded to yet, I'm looking for a way to do a search for all issues/prs that have:

  • either no comments
  • or comments only by the author of the issue/pr

Note that I'm doing this programmatically, using GitHub's REST API (in particular the Issues request).

One idea is to search by number of comments as indicated here (comments:>0) but this won't work if the person who created the issue is also the one who posted the comments. I'm only interested in finding issues that have not had any other comments from other people.

I'd love to be able to do something like comments:>0 -commenter:$AUTHOR where $AUTHOR would be a way to dynamically refer to the author of the issue/pr.

I don't want to have to do this with several requests if possible. But I'm doubting that this is possible at all. Any ideas?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source