mirror of
https://github.com/lizheming/drone-wechat.git
synced 2026-06-04 18:33:46 +08:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a3b45bf3d7 | |||
| 547d96caea | |||
| ebb4fa4536 | |||
| 5b410441e6 | |||
| a10b8c2982 | |||
| 31457c2db5 | |||
| 8f3fadac27 | |||
| 4f828a37a2 | |||
| 960b54b0da |
@@ -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}}次构建成功!
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "drone-wechat",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.5",
|
||||
"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"
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user