Reputation: 202685
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?
Upvotes: 6
Views: 2639
Reputation: 113475
This is possible since GitHub introduced the advanced filters.
Show me all open issues that are labeled
view/controller
but are not labeledeasy 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
orneeds thought
.
is:open is:issue label:"major refactoring","needs thought"
Note that using label:A label:B
means A and B while label:A,B
means A or B (docs)
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!
Upvotes: 10
Reputation: 18782
Not possible, at least using the GitHub Web app only. There may be 3rd party issue-management Web apps that do this (via GitHub API), but I'm not aware of any that do exactly and only what you want. Check out:
http://githubissues.herokuapp.com/
https://zapier.com/zapbook/github/trello/ (trello integration)
There are ways to achieve nearly what you want using formatted issue naming + searching, as described here: https://softwareengineering.stackexchange.com/questions/129714/how-to-manage-github-issues-for-priority-etc
Upvotes: 2