unsplash/comment-on-pr

Support github format inside the message?

yuri1992 opened this issue · 1 comments

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

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.