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

Ability to filter with label wildcards? #178

Open
petemounce opened this issue Aug 8, 2022 · 5 comments
Open

Ability to filter with label wildcards? #178

petemounce opened this issue Aug 8, 2022 · 5 comments

Comments

@petemounce
Copy link

We use a hierarchical labelling system where I am. For example, origin/customer/{name-of-customer}, area/product/widget-factory/windows.

I'd really like to have closer control over how to route issues, so that I could, for example, do label: area/product/* and add that to the product-manager triage project, vs area/internal/foo to a different project.

We have quite deep hierarchies; being able to use glob semantics (? for wildcard single character; * for wildcard between /, and; ** for recursively wildcard) would be extremely useful.

Is that something you would support, either by implementing directly, or by accepting an appropriate-quality-standards PR?

@skw
Copy link
Contributor

skw commented Aug 10, 2022

👋 Hi @petemounce this seems like a really useful improvement. Contributions are generally welcome but I'll defer to @mattcosta7 who's been owning this action 🙇

@mattcosta7
Copy link
Contributor

I think we'd definitely accept regex / glob matching prs

@austenstone
Copy link

Here's some sudo code to condition on the labels with regex using actions/github-script

- uses: actions/github-script@v6
  id: my-script
  with:
    script: return context.issue.labels.reduce((p,c) => p ? p : c.match(/regex here/g), false)
- run: echo "OK"
  if: steps.my-script.outputs.result

@petemounce
Copy link
Author

Thanks for the prior art! I'd prefer to just glob, for the simpler UX. What do others think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@petemounce @skw @mattcosta7 @austenstone and others