-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add regex support for ignored jobs #50
Comments
Thanks @Jrc356, I can see this being quite a useful feature! However, I'm a bit unsure whether we should offer the straight regex support in the current As GitHub Action input doesn't allow other data types such as lists, if we were to support multiple regex inputs, we would need some delimiter in place. The current implementation of using comma may be quite limiting and annoying, though. For instance, jobs using matrix strategy would have Do you have some other example use cases for regex, and what you would want to achieve? |
Thanks for the suggestion! I think it is a very useful feature. 👍 However. I have a few concerns. If we also support regular expressions in |
@hlts2 @rytswd yeah that makes sense to me. A new
Assuming a new |
@Jrc356 Sorry to loop back late - a separate flag sounds like a better idea than having a list of jobs in regex form 🤩 Regarding the newline handling, I think the current implementation of 👍 GOOD ignored: |
a,
b,
c 🙅 NOT GOOD (as of writing) ignored: |
a
b
c Along with adding a flag to support, we may want to extend the support for newline as a delimiter, without commas. With that, it would be easier to clearer for users to see each line as regex / wildcard input, with no extra complication. |
@rytswd no worries 😊
A simplified wildcard could work. I imagine there might be an edge case for supporting regex such as numbers, example:
but I imagine this use case is few and far between. That being said, I think wildcard support would solve most cases.
+1 on switching the delimiter to newline instead of comma but I imagine this would be breaking? Or perhaps you were thinking of something else here and I'm misinterpreting? |
@Jrc356 As to the newline delimiter, we should be able to support both comma and newline at the same time (at least for when the ignore mode is set to |
That sounds good to me!
I don't think this would be necessary, just an edge case I could think of. I don't think it would be a common use case though |
It would be cool if we could support regex matching on ignored jobs. This way we can specify something like
deploy-*
and have it ignore all thedeploy
jobsThe text was updated successfully, but these errors were encountered: