5 Commits

Author SHA1 Message Date
lizheming f6d38f75a8 1.1.7 2019-12-10 13:27:57 +08:00
Austin Lee 58ca98d95f Merge pull request #5 from zgayjjf/patch-1
feat: add support for Nunjuncks with btntext
2019-12-10 13:27:22 +08:00
jeffjing b1482817f1 feat: add support for Nunjuncks with btntext 2019-12-10 13:26:03 +08:00
lizheming 7c09b00e73 1.1.6 2019-02-01 19:14:41 +08:00
lizheming 27431b7e9d fix #4 2019-02-01 19:14:37 +08:00
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "drone-wechat",
"version": "1.1.5",
"version": "1.1.7",
"description": "drone wechat notification plugin",
"main": "index.js",
"scripts": {
+6 -2
View File
@@ -55,9 +55,13 @@ function sendMsgFromWork({
safe,
title
}) {
title = render(title);
const description = render(message);
title = title && render(title);
totag = totag && render(totag);
btntext = btntext && render(btntext);
const description = message && render(message);
const textcard = { title, url, btntext, description };
return request({
method: 'POST',
url: 'https://qyapi.weixin.qq.com/cgi-bin/message/send',