-
Notifications
You must be signed in to change notification settings - Fork 11
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
Tests fail when only one_of
is provided
#228
Comments
It works when I add all options (leave them non-empty): - id: check-label
name: Check pull request labels
uses: agilepathway/label-checker@v1.0.90
continue-on-error: true
with:
any_of: cicd
one_of: cicd
all_of: cicd
none_of: non-existing-label
repo_token: ${{ secrets.GITHUB_TOKEN }} |
Hi @riker09, as per my comment in 227 really sorry that I'm only replying now. Thanks for raising this, will look into it and get back to you shortly. |
Hi again @riker09, I've released a fix for this (v1.0.91). Thanks for reporting it, it was caused by me wrongly expecting the checks to be not present by default, whereas they actually default to an empty string. Please let me know if it fixes this issue, and also if #227 is still an issue after this fix. Thanks, John |
Hello @johnboyes and no worries for a "late" reply. Sometimes I receive responses for issues that I've commented years ago, so you are well within the socially accepted limit. 😀 I will check out the new version and report any results here as soon as I find the time. Vacation season is around the corner, though. If you don't hear from me then you know the reason behind it. From a quick glance at your changes I'd say this should do the trick just fine. |
Hi @riker09, just following up on this to see if it did indeed fix your issue? No probs if vacation season is in full swing, no rush 🏖️ 😎 |
It did! Thanks 😃 |
Fixed by #230 |
This action does not work when the PR is assigned a
cicd
label.Here's the simplified workflow YAML: #227 (comment)
All tests are being run, this is the resulting log:
From the looks of it I would say that even though I only passed one option (
one_of
) the other three tests are also evaluated with empty values. This looks like a bug to me and I would gladly help, but I don't know any Go.Originally posted by @riker09 in #227 (comment)
The text was updated successfully, but these errors were encountered: