Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以在企业微信里面发通知吗? #8

Closed
HelloWorldya opened this issue Aug 21, 2022 · 4 comments
Closed

可以在企业微信里面发通知吗? #8

HelloWorldya opened this issue Aug 21, 2022 · 4 comments

Comments

@HelloWorldya
Copy link

No description provided.

@guMcrey
Copy link
Owner

guMcrey commented Aug 21, 2022

感谢关注,目前还不支持企业微信,我先去调研一下,能支持的话,尽快同步给你哦(๑˙ー˙๑)

@guMcrey
Copy link
Owner

guMcrey commented Aug 21, 2022

你好, 安装 v1.3.0 最新版就可以发送部署消息到企业微信了, 具体使用方法请参考文档 支持推送部署成功的通知到 企业微信(WeCom) 群聊

感谢反馈, 如有其他疑问欢迎提 issue 给我❤️

@guMcrey guMcrey closed this as completed Aug 21, 2022
@HelloWorldya
Copy link
Author

HelloWorldya commented Oct 11, 2022 via email

@guMcrey
Copy link
Owner

guMcrey commented Oct 11, 2022

@HelloWorldya
使用方法:

  1. 在项目本地新建 message-config.json 文件, 文件字段和内容参考如下
{
    // 消息卡片标题
    "title": "TEST FE Deployed Successfully",
    // 可选: 项目名称标签, 默认 Project Name
    "projectNameLabel": "Project name label",
    // 项目名称
    "projectName": "TEST",
    // 可选: 项目分支标签, 默认 Branch
    "branchLabel": "Branch label",
    // 项目分支, 可用于区别部署环境
    "branch": "Staging",
    // 可选: 版本标签, 默认 Version
    "versionLabel": "Version label",
    // 版本
    "version": "1.1.1.0",
    // 可选: 项目可访问地址标签, 默认 URL
    "accessUrlLabel": "Access URL label",
    // 项目可访问地址
    "accessUrl": "https://test.com",
    // 是否@所有人: true / false
    "isNotifyAll": true,
    // 企业微信机器人的 webhook 链接
    "webHook": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxxxxxxxx",
    // 可选: 部署工具描述
    "deployToolsText": "Deploy tools text",
    // 可选: 部署时间想要转换成的时区,默认 "Asia/Shanghai" (当你的项目要部署的目标服务器与你所在时区不同, 可以设置此字段来转换时区)
    "expectConvertToTimezone": "America/New_York"
    // 可选: 想要展示除模版之外的更多信息
    "remark": "Trigger by bob, fix xxx bug"
}
  1. 在 package.json 文件 scripts 中新建自定义执行命令 send-wecom-message:test
// package.json

{
  "name": "test",
   ...
  "scripts": 
    "send-wecom-message:test": "send-wecom-message"
    ...
  },
  ...
}
  1. 控制台执行 npm run send-wecom-message:test 即可,企业微信消息就发送成功了

更多详情参见文档,感谢关注

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants