Support github format inside the message?
yuri1992 opened this issue · 1 comments
yuri1992 commented
Can the package support Github format inside the message?
name: Test writing message in PR
runs-on: ubuntu-latest
steps:
- name: Automation tests run report.
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: |
<details>
<summary>Test Successful Passed</summary>
```
def func():
return 'hello, world!'
```
</details>
check_for_duplicate_msg: true # OPTIONAL
jeffreyguenther commented
Have you given this a try? The underlying action takes the message value and passes it as a string so there's no reason why this couldn't work.
If it doesn't, I suspect it's because of how the values we pass into the action are turned into commandline args for the action to process - a small matter of escaping things.