Closed cgardner closed 8 months ago
Hi @cgardner Thanks for reporting this issue. Thanks for letting us know about this issue!
gitStream is currently unable to handle complex variables in filter functions, causing errors with the {{ has.apex | some }}
and {{ has.tests | nope }}
conditions.
We are planning to fix this, but in the meantime, you can try a workaround by piping the filter to the variable itself:
if:
- {{ has.apex }}
- {{ has.no_tests }}
...
...
...
has:
apex: {{ files | match(regex=r/.*(?<!Test)\.cls$/) | some }}
no_tests: {{ files | match(regex=r/.*Test.*\.cls$/) | nope}}
Hope this helps for now! Let me know if you have any questions or need further assistance. Best, Pavel.
@PavelLinearB, That was it. Thank you very much.
Describe the bug
I'm getting the following error when gitStream tries to verify my gitstream.cm Pull Request. I tried testing the same file with the
To Reproduce
Steps to reproduce the behavior:
Here's my automation file:
It worked just fine before I added the
label_prs_without_tests
automation andhas
expressions.Expected behavior
I would expect to receive more information telling me what I did wrong.
Additional context
Here's a cleaned up github actions log: