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
Formatting the text in the body #247
Comments
You can use Markdown formatting in the body: github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: "**Bold text here**"
}) Note that if you have a multi-line comment that the indentation must be correct, otherwise your formatted text will be placed github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `# Images
# Title
![](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)`
}) |
Cheers @josh- I'll give this a spin. This really ought to be in the documentation |
Works like a charm! Cheers :) |
You're welcome! Just opened #252 adding an example to the docs 👍 |
Indeed, my issue was a wrong indentation 👍 |
@josh- We denote code or a command within a sentence using single backticks. Could you please explain how to escape backticks when they're part of the text body? |
@amol-patel you should be able to use a
|
Thank you so much @joshmgross |
Hey folks! Awesome project you have here!
Just have a question regarding the
body
property when creating a comment.Is it possible to format it? I.e. make it bold or apply some colour to the text?
This may be in the documentation, but I have not come across it.
Many thanks!
The text was updated successfully, but these errors were encountered: