Skip to content

Commit 713205c

Browse files
committed
Added unfurling
1 parent d53bdd9 commit 713205c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

dist/index.js

+9-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

message.js

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const {
88
SLACK_USERNAME,
99
SLACK_CHANNEL,
1010
SLACK_CUSTOM_PAYLOAD,
11+
SLACK_UNFURL_LINKS,
1112
} = process.env;
1213

1314
const messageSingleton = (() => {
@@ -19,6 +20,9 @@ const messageSingleton = (() => {
1920
const message = {};
2021

2122
message.text = getMessage(); // Args || DEFAULT_MESSAGE
23+
if(SLACK_UNFURL_LINKS === 'true'){
24+
message.unfurl_links = true;
25+
}
2226

2327
// override username
2428
if (SLACK_USERNAME) message.username = SLACK_USERNAME;

0 commit comments

Comments
 (0)