add drone_build_link for msg_url default

This commit is contained in:
lizheming
2018-12-10 11:19:08 +08:00
parent ceeb1a1d14
commit 4dd376b565
+4 -2
View File
@@ -22,7 +22,9 @@ const {
PLUGIN_BTN_TEXT,
PLUGIN_TITLE,
PLUGIN_MESSAGE
PLUGIN_MESSAGE,
DRONE_BUILD_LINK
} = process.env;
function getAccessToken() {
@@ -54,7 +56,7 @@ function sendMsgFromWork(access_token) {
const SAFE = PLUGIN_SAFE || 0;
const TITLE = PLUGIN_TITLE;
const DESCRIPTION = render(PLUGIN_MESSAGE);
const MSG_URL = PLUGIN_MSG_URL;
const MSG_URL = PLUGIN_MSG_URL || DRONE_BUILD_LINK;
const BTN_TEXT = PLUGIN_BTN_TEXT;
return request({