Multiline messages not working
See original GitHub issueAs per the slack message formatting guide, we can insert a newline by including the characters \n
. But this seems to doesn’t work in this plugin because I’m getting \n
in the message.
workflow "Slack - New Issues" {
resolves = ["Slack Notification for New Issues"]
on = "issues"
}
action "Slack Notification for New Issues" {
uses = "Ilshidur/action-slack@6aeb2acb39f91da283faf4c76898a723a03b2264"
secrets = ["SLACK_WEBHOOK"]
args = "A new issue has been added. \\nURL - {{ EVENT_PAYLOAD.issue.html_url }} \\nTitle - {{ EVENT_PAYLOAD.issue.title }} \\nBody - {{ EVENT_PAYLOAD.issue.body }}"
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Multiline text not working Autocad 2021 Mac - Autodesk Forums
I have an issue where the multi-line text doesn't work, and the text isn't restricted for the space I set it. The qtext...
Read more >flutter - Text widget multi line isn't working and giving an error
For some reason it's not working, i.e. it isn't multi-line, and it's giving the error of: RenderFlex overflowed by 9.0 pixels on the...
Read more >Multilines of text stopped working | Power Apps Exchange
When my email goes out through PowerAutomate, it now sends everything in a single line of text. I DO see that in the...
Read more >Media + Text Box with multi-line text not working?
I am trying to get the Media + Text block working inside a post so I can have finer control over the alignment...
Read more >Multiline message not containing filter - Infrastructure
Everything works fine, my messages become multiline. But when I applied not containing filter like -AAAA, it is not working.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This just needed the
m
Regexp parameter, allowing multi line replacement.Here’s the final fix :
Ilshidur/action-slack@9273a03
Hello.
You are right. Forgetting to use a
RegExp
was a mistake. This testifies that this code needs some unit tests 😄I released a fix.