unsplash / comment-on-pr

A GitHub Action to comment on the relevant open PR when a commit is pushed.
MIT License
150 stars 84 forks source link

Support github format inside the message? #30

Open yuri1992 opened 4 years ago

yuri1992 commented 4 years ago

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 3 years ago

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.