Skip to content

Commit 741b767

Browse files
committed
Don't swallow plaintext when formatting links
It used to be that with non-richtext adapters, like e.g. IRC, we'd swallow the human-readable text and display only the URL. However, that text is often super useful - it contains, for example, issue titles. So we just put the URL in parentheses. Fixes #44
1 parent 3646c32 commit 741b767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/event-actions/all.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ formatUrl = (adapter, url, text) ->
2727
when "mattermost" || "slack"
2828
"<#{url}|#{text}>"
2929
else
30-
url
30+
"#{text} (#{url})"
3131

3232
module.exports =
3333
commit_comment: (adapter, data, callback) ->

0 commit comments

Comments
 (0)