12 Commits

Author SHA1 Message Date
Renovate Bot c2f9985a4e Add renovate.json 2021-01-16 04:15:03 +00:00
lizheming 46b144516a feat: update dep drone-render version 2020-09-04 20:52:48 +08:00
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
lizheming a3b45bf3d7 1.1.5 2019-01-31 15:07:07 +08:00
lizheming 547d96caea update drone-render version 2019-01-31 15:07:04 +08:00
lizheming ebb4fa4536 add to_user default value 2019-01-30 17:18:05 +08:00
lizheming 5b410441e6 1.1.4 2019-01-30 17:14:09 +08:00
lizheming a10b8c2982 fix test bug 2019-01-30 17:13:59 +08:00
5 changed files with 15 additions and 4 deletions
+1
View File
@@ -62,6 +62,7 @@ steps:
from_secret: corp_secret
agent_id:
from_secret: agent_id
to_user: "@all"
message: >
{% if success %}
😊主人,{{repo.owner}}/{{repo.name}}第{{build.number}}次构建成功!
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "drone-wechat",
"version": "1.1.3",
"version": "1.1.7",
"description": "drone wechat notification plugin",
"main": "index.js",
"scripts": {
@@ -26,7 +26,7 @@
"homepage": "https://github.com/lizheming/drone-wechat#readme",
"dependencies": {
"coveralls": "^3.0.2",
"drone-render": "^1.0.0",
"drone-render": "^1.0.4",
"request": "^2.83.0",
"request-promise-native": "^1.0.5"
},
+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',
+5
View File
@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}
+1
View File
@@ -60,6 +60,7 @@ test('send wechat with corp id', async t => {
PLUGIN_MESSAGE: MESSAGE,
PLUGIN_TO_PARTY: 'party',
PLUGIN_TO_TAG: 'tag',
PLUGIN_TO_USER: '@all',
PLUGIN_MSG_URL: '',
PLUGIN_BTN_TEXT: 'more',
PLUGIN_AGENT_ID: 1122