Skip to content
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

Support github format inside the message? #30

Open
yuri1992 opened this issue Sep 7, 2020 · 1 comment
Open

Support github format inside the message? #30

yuri1992 opened this issue Sep 7, 2020 · 1 comment

Comments

@yuri1992
Copy link

yuri1992 commented Sep 7, 2020

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants