ptsochantaris / trailer

Managing Pull Requests and Issues For GitHub & GitHub Enterprise
https://github.com/ptsochantaris/trailer
Other
1.17k stars 67 forks source link

Whitelisting repositories with filter #462

Closed Anonycoders closed 1 year ago

Anonycoders commented 2 years ago

Hi,

I'm trying to discover all the features and parts in this amazing application, but one thing that caught my attention so far was Filtering and I saw that there are two types of filtering:

  1. In the search bar
  2. In the filtering section

I'm using Trailer in a big company which has too many labels that I can not include them one by one in feature section. I was wondering if there is a workaround here so for example I put 5 filters in the Filters page and Trailer only displays the PRs/Issues that have at least one of those 5 filters.

P.S: I've already tried putting labels like !label 1, !label 2 and also -label1, -label2 but didn't work.

nnacin commented 2 years ago

I was wondering the same thing. How to have combined filters (with AND or OR conditions) like !label1 && !label2)

Jecoms commented 2 years ago

This would be a great addition. I have more use of an allow-list than a block-list.

ptsochantaris commented 1 year ago

Hi, sorry for not spotting this a little earlier - on the menus you can exclude multiple labels like this:

Things are ORed inside a single label: prefix, so, e.g.: label:enhancement,bug would show items that have the enhancement or bug labels label:!enhancement,!bug would exclude items that contain the enhancement or bug labels

If you want to AND things, you can add multiple label: statements, since separate items get ANDed in filters. So for instance: label:enhancement label:bug will show items that have both the enhancement or bug labels.

This rule holds for all filtering settings, not just labels. I hope this helps!

ptsochantaris commented 1 year ago

Coming back to this issue, it does sound like a great option could be to add a "only show items that..." toggle to the current exclusion lists in the same way we do for statuses:

Adding this to the TODO list 👍

ptsochantaris commented 1 year ago

Hi, this build contains a first version of this feature - each of the exclusion lists now has an dropdown that can change its behaviour to act differently, for example only showing items with specific labels. If you get a chance to try it out and have and feedback or suggestions they'd be very welcome.

Screenshot 2023-08-25 at 10 59 30 Screenshot 2023-08-25 at 10 59 21 Screenshot 2023-08-25 at 11 02 57

Trailer-1712.zip

ptsochantaris commented 1 year ago

Closing this as it has been sent out with the latest update, but please feel free to create issues with feedback and/or more suggestions related to this or other bits! 👍