-
Notifications
You must be signed in to change notification settings - Fork 135
Fix/commenter #1258
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
Fix/commenter #1258
Conversation
Please add one of the following labels to add this contribution to the Release Notes 👇 |
SolutionThe reason was the if: toJSON(github.event.pull_request.labels.*.name) == '{}' But it should be: if: toJSON(github.event.pull_request.labels.*.name) == '[]' TestsI did a test in: with: - name: Test
run: |
toJSON(github.event.pull_request.labels.*.name)
${{ toJSON(github.event.pull_request.labels.*.name) }} and the result was: https://github.com/pyansys/pymapdl/runs/7229660105?check_suite_focus=true NotesPinging @jorgepiloto for review and for awareness. |
Codecov Report
@@ Coverage Diff @@
## main #1258 +/- ##
=======================================
Coverage 78.02% 78.02%
=======================================
Files 43 43
Lines 6780 6780
=======================================
Hits 5290 5290
Misses 1490 1490 |
Ha... Thanks for the update! I think it makes sense that it returns a list rather than brackets... YAML files work with lists. Plus, brackets are used for interpreting variables in the GitHub workflow... which makes sense that you would try to avoid and return a bracketed string. JSON also works with square brackets for representing lists. In fact, what it must be happening is that all this information is (behind the scenes) a complete JSON file, and you must be accessing elements by calling Thanks for the info @germa89!! =) |
Masterclass over here! This should be in the Github docs. 😄 |
I discover in #1155 that the commenter wasn't working.
Close #1155