action-slack-notify icon indicating copy to clipboard operation
action-slack-notify copied to clipboard

did you consider adding support for markdown

Open derberg opened this issue 4 years ago • 3 comments

At the moment, to get a beautiful markdown in slack, I need to convert input first with this action https://github.com/LoveToKnow/slackify-markdown-action. My input message looks like [${{github.event.issue.title}}](${{github.event.issue.html_url}}) \n ${{github.event.issue.body}} so I really cannot manually make it "slack" compatible as I do not have control over issue body.

but it looks like it is a simple as adding https://github.com/jsarafajr/slackify-markdown and enabling someone to specify if they want to slackify markdown in message or not.

derberg avatar Jan 11 '21 19:01 derberg

Hey @derberg, that is a great suggestion. We will add native support to slackify the markdown in SLACK_MESSAGE if an env var like say SLACKIFY_MARKDOWN is set to true with the help of https://github.com/jsarafajr/slackify-markdown

PRs are welcome for this enhancement. Otherwise, I will later pick this up. But that may take some time as my schedule is packed as of now.

mrrobot47 avatar Jan 12 '21 04:01 mrrobot47

@mrrobot47 yeah, sorry but go is not on my list of skills 😄 and I've already set a workaround https://github.com/asyncapi/.github/pull/18/files#diff-1ee55436eb74158dd30293540d530e66f2179cc688feb6c365f90977bdad5d8cR20-R31 that for now is fine for me. I just wanted to drop an idea as I've spent a lot of time reviewing different slack related actions, and this action was the best one after all

derberg avatar Jan 12 '21 08:01 derberg

@mrrobot47 and updates about this?

elahmo avatar Feb 16 '22 18:02 elahmo

Support for Markdown has been added by using slackify-markdown-action as suggested by the OP. Use SLACKIFY_MARKDOWN="true" to enable markdown to slack-formatting conversion.

L0RD-ZER0 avatar Mar 11 '24 12:03 L0RD-ZER0