Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use labels to filter issues on the github issue tracker?

I'm using the github issue tracker for the first time, and I'm trying to manage a set of about 50 open issues. I would like to filter the set using standard Boolean queries over labels. But all I can figure out how to do is AND queries. For example, I can show all issues that are labelled both view/controller and easy meat. But I do not know how to do any of the following queries:

  • Show me all open issues that are labeled view/controller but are not labeled easy meat.

  • Show me all open issues that are labeled either major refactoring or needs thought.

  • Show me every open issue that does not have any label.

I've searched and I've RTFM, and I can't find a way to ask these kinds of queries. Are such queries even possible? If so, how does one ask them?

like image 561
Norman Ramsey Avatar asked Feb 17 '13 02:02

Norman Ramsey


1 Answers

This is possible since GitHub introduced the advanced filters.

Show me all open issues that are labeled view/controller but are not labeled easy meat.

is:open is:issue label:"view/controller" -label:"easy meat" 

Notice the - before label: which says do not give me the issues containing this label.

Show me all open issues that are labeled either major refactoring or needs thought.

This is not supported (using label:A label:B means A and B instead of A or B) but you can do two different queries:

is:open is:issue label:"major refactoring"
is:open is:issue label:"needs thought"

Show me every open issue that does not have any label.

Use the no:label query:

is:open is:issue no:label

As additional info, you can refer to the GitHub documentation. And, https://github.com/issues can be your playgroud–being authenticated, you can search all the issues from repositories you have read access!

like image 156
Ionică Bizău Avatar answered Oct 23 '22 14:10

Ionică Bizău