-
Notifications
You must be signed in to change notification settings - Fork 143
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 issue via action #192
Comments
Hi @jackherizsmith, unfortunately, Slack's mrkdwn does not natively support markdown's list sytanx. As a workaround, you need to |
That's very helpful clarification - so assuming the more advanced |
is there an alternative you can recommend, in order to get this formatting to work from a GitHub action? |
I suppose rather than using this action, I could write a custom step that invokes curl? |
The list syntax just does not exist. Any other syntax available here should work when using this GitHub action library. Please refer to https://github.com/slackapi/slack-github-action/tree/main/example-workflows too. |
ah I see interesting! so lists (bullet points) are specifically broken, and everything else should work as documented? |
I'm using Technique 1: Slack Workflow Builder and not observing any formatting to work. That doc link says:
but the Workflow Builder modal doesn't let me do much with the "variables" (e.g. can't use them in links or code fences). It seems to let me bold-face or italicize a "variable": but even that doesn't work; everything is rendered without formatting: Run slackapi/slack-github-action@v1.24.0
with:
payload: {
"text": "Sample text, *bold1* **bold2** _italic_ `code` [link](https://github.com/slackapi/slack-github-action)\n```code fence```\n"
}
env:
SLACK_WEBHOOK_URL: *** @seratch when you said:
is that supposed to apply to "Technique 1"? |
No, any of Slack syntax does not work in Workflow Builder variables. I should have been more specific, but I meant, as long as you use incoming webhooks or chat.postMessage API to directly post a Slack message from your GitHub Actions job, any formatting syntax are available for it while they are not available for Workflow Builder integration. @jackherizsmith Sorry for my late response here:
All the syntax documented work as you expect. Let me close this issue now 👋 |
Description
Formatting from string created during action is being ignored
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 1.23.0
node version:
OS version(s): ubuntu-latest
Steps to reproduce:
mrkdwn
formatting via webhook like "- thing 1\n- thing 2"Expected result:
What you expected to happen
formatted:
Actual result:
unformatted:
- thing 1
- thing 2
Attachments:
The text was updated successfully, but these errors were encountered: