Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: filter for multiple labels of a type #274

Open
joeyparrish opened this issue Sep 28, 2021 · 0 comments
Open

FR: filter for multiple labels of a type #274

joeyparrish opened this issue Sep 28, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@joeyparrish
Copy link
Member

My projects have "type" labels such as "type: bug" and "type: enhancement". I would like to be able to filter for issues with multiple of these. This is not currently possible as far as I can tell for more than two type labels.

For two labels that are mutually exclusive, this is still doable with the current filter system:

  filters:
    # Match issues with more than one "type" label
    - label: "type: bug"
    - label: "type: enhancement"

But I don't believe this is possible with this structure and three or more type labels.

One way to solve it would be a filter that runs over all labels concatenated (maybe with some separator like a newline that can't appear in labels). For example, then I could do something like this:

  filters:
    # Match issues with more than one "type" label
    - all-labels: ".*type: .*type: .*"

Another solution might be to have a counter for labels matching a certain regex. For example:

  filters:
    # Match issues with more than one "type" label
    - label-count:
      - regex: "type: .*"
      - match: ">1"

I'm open to other ideas, and I'd be happy with any solution the maintainers would be willing to accept.

@joeyparrish joeyparrish added the enhancement New feature or request label May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant