Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Based on all the feedback received at isaacs/github#660 over the last 5 years, I would like to keep the conversation going. The original content of the post was:

I want to filter labels using a query like label:bug OR label:feature. Is there a way to do this? Seems to only support AND ATM.

You must be logged in to vote

Hi everyone 👋, you can now search issues by label using logical OR. Simply use a comma to separate the labels. For example label:"good first issue",bug will list all issues with a label good first issue or bug. See https://github.blog/changelog/2021-08-02-search-issues-by-label-using-logical-or/ .

Replies: 9 comments · 3 replies

Comment options

Note that the original issue has:

  • 672 👍
  • 59 🎉
  • 90 ❤️
  • 30 👀
You must be logged in to vote
0 replies
Comment options

Hi everyone 👋, you can now search issues by label using logical OR. Simply use a comma to separate the labels. For example label:"good first issue",bug will list all issues with a label good first issue or bug. See https://github.blog/changelog/2021-08-02-search-issues-by-label-using-logical-or/ .

You must be logged in to vote
0 replies
Answer selected by michellemerrill
Comment options

This works in pull requests and issues lists in the repository. Unfortunately, this feature does not work in generic view for PRs/issues like https://github.com/pulls or https://github.com/issues. When I try to use it there, label:"good first issue",bug is converted to non-working label:"good first issue,bug".

You must be logged in to vote
0 replies
Comment options

Could this be added to the documentation? https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax does not mention this feature, nor is it exposed or mentioned in advanced search

You must be logged in to vote
1 reply
@IndigoLily
Comment options

It's not documented on that page because it's not actually part of the search syntax, it's specifically a feature of the label qualifier (which is ridiculous imho), and it is documented there.

Comment options

OK, works for labels. That was the initial ask. But in the thread thread there was a lot of suggestions regarding this kind of feature for the other attributes (title, user, body etc) which seems logical. Will these be covered too?

You must be logged in to vote
1 reply
@76hy55bcwt-ux

This comment was marked as off-topic.

Comment options

What about other keys other than label? such as author?

You must be logged in to vote
0 replies
Comment options

Id love to be able to serach for is:open is:pr (user-review-requested:@me OR (author:@me review:required)) so I can easily find everything that needs my attention ATM.

You must be logged in to vote
1 reply
@aqeelat
Comment options

@dipree Is this on your radar?

Comment options

For those still following along here, wanted to flag this discussion for the private beta of advanced search for Issues, including AND/OR and nested searches. Follow along there as we'll be posting updates on when this is being expanded and how to join!

You must be logged in to vote
0 replies
Comment options

I noticed this was introduced to the issues page. Its great to see this sort of functionality being implemented.

However, I would love for this to be available for GitHub Projects. I think functionality like this is most useful in Projects, where I want to be able to build complex queries that are persistent. Having this sort of functionality on the issues page is nice but I only use that page when searching for issues adhoc. Projects is really where I want to be able to use complex queries.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement An idea, feature request, or improvement to a GitHub feature 🚀 Shipped A feature has been released Issues Repository issues let you track features, problems, and more alongside your code Product Feedback Share your thoughts and suggestions on GitHub features and improvements
Morty Proxy This is a proxified and sanitized view of the page, visit original site.