-
Notifications
You must be signed in to change notification settings - Fork 130
URL handling not working with lita templating functionality #36
Comments
lita-slack 1.5 was just released with new logic to remove the special formatting the Slack applies to incoming messages. Try it again with 1.5 and see if it works how you'd expect it to! |
This seems like it's still a problem in |
@pseudomuto I tried the code example listed and it works ok.. do you have some examples that I can look at? |
For sure. I was trying get github deployment information and render a few links in there. Here's the snippet that wasn't working for me (just renders the supplied text inside *Latest deploys for <%= @repo.full_name %>*
<% @deploys.each do |deploy| %>
> <%= deploy.at %> - *<%= deploy.user %>* <<%= deploy.url %>|deployed> <%= @repo.repo_name %>/<%= @repo.full_name %> (<%= "<#{@repo.url_for_sha(deploy.sha)}|#{@repo.shorten_sha(deploy.sha)}>" %>) to *<%= deploy.environment %>*
<% end %> |
This is an issue with the Slack RTM message handling. See slackhq/slack-api-docs#32. The workaround is to use the API This lita-slack fork (not mine, but probably one I'll grab to address this issue for the moment) implements that by assuming that non-strings sent to That gives you support for attachments, but doesn't make a happy path for inline formatting. For that you would need to do something funkier, like a regex for format-looking bits in the message string. |
@pseudomuto I hadn't gotten around to testing this yet due to other stuff.. |
@dieterdemeyer cool...thanks man! In the mean time, I'll monkey patch with@ewr's diff from #49 and see if that resolves it. |
+1 Any eta on a fix? |
Anyone following this issue may be interested in #68—I think it will address this. |
Update: the PR to follow is now #76. |
Hello,
I'm trying out the lita templating functionality using the slack adapter but can't seem to get the URL handling to work.
I'm using the following code in my .erb file:
The output now is:
But I would like to see the following:
• puppet-alternatives: pull request #1 - fix: insync function comparing current and should items - by vladnazarenko
Any suggestions on what I'm doing wrong ?
I think I'm using the correct syntax for links in Slack but any help would be appreciated..
The text was updated successfully, but these errors were encountered: