11 Commits

Author SHA1 Message Date
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
lizheming 31457c2db5 1.1.3 2019-01-30 17:10:44 +08:00
lizheming 8f3fadac27 fix #3 2019-01-30 17:10:40 +08:00
lizheming 4f828a37a2 1.1.2 2019-01-23 11:55:49 +08:00
lizheming 960b54b0da fix test with totag 2019-01-23 11:45:48 +08:00
5 changed files with 6 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}}次构建成功!
-1
View File
@@ -18,7 +18,6 @@ configParser({
},
to_user: {
usage: 'The user ids to send the message to',
def: '@all',
env: 'PLUGIN_TO_USER,WECHAT_TO_USER'
},
to_tag: {
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "drone-wechat",
"version": "1.1.1",
"version": "1.1.6",
"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.2",
"request": "^2.83.0",
"request-promise-native": "^1.0.5"
},
+1
View File
@@ -56,6 +56,7 @@ function sendMsgFromWork({
title
}) {
title = render(title);
totag = render(totag);
const description = render(message);
const textcard = { title, url, btntext, description };
return request({
+2 -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
@@ -79,7 +80,7 @@ test('send wechat with corp id', async t => {
body: {
touser: '@all',
toparty: 'party',
tag: 'tag',
totag: 'tag',
msgtype: 'textcard',
agentid: 1122,
safe: 0,