All Projects → tlikai → Hwamei

tlikai / Hwamei

企业微信webhook,企业微信群机器人webhook,支持Github、Gitlab、Sentry等Webhook

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hwamei

pm2-githook
receive webhook from github/gitlab and ask pm2 to reload the application for you
Stars: ✭ 39 (-72.54%)
Mutual labels:  jenkins, gitlab, webhook
Skyhook
Parses webhooks and forwards them in the proper format to Discord.
Stars: ✭ 263 (+85.21%)
Mutual labels:  webhook, jenkins, gitlab
Gitwebhookproxy
A proxy to let webhooks reach running services behind a firewall – [✩Star] if you're using it!
Stars: ✭ 123 (-13.38%)
Mutual labels:  webhook, jenkins, gitlab
Generic Webhook Trigger Plugin
Can receive any HTTP request, extract any values from JSON or XML and trigger a job with those values available as variables. Works with GitHub, GitLab, Bitbucket, Jira and many more.
Stars: ✭ 287 (+102.11%)
Mutual labels:  webhook, gitlab
gitlab-ci-discord-webhook
⛓ Here's your serverless solution for sending build status from GitLab CI to Discord as webhooks.
Stars: ✭ 32 (-77.46%)
Mutual labels:  gitlab, webhook
Discord-GitLab-Webhook
A Discord bot for using webhooks with GitLab (and extendable for other custom webhooks not yet built into Discord).
Stars: ✭ 35 (-75.35%)
Mutual labels:  gitlab, webhook
Ansible Playbooks
Ansible playbook collection that have been written for Ubuntu. Some of the playbooks are Elasticsearch, Mesos, AWS, MySql, Sensu, Nginx etc..
Stars: ✭ 429 (+202.11%)
Mutual labels:  jenkins, gitlab
Node Build Monitor
A Build Monitor written in Node.js, which supports several build services and can be easily extended.
Stars: ✭ 336 (+136.62%)
Mutual labels:  jenkins, gitlab
Git Deploy
Php Script for Auto-Pull in server (Using WebHook from GitLab, GitHub and Bitbucket)
Stars: ✭ 495 (+248.59%)
Mutual labels:  webhook, gitlab
Kubernetes Learning
《从Docker到Kubernetes进阶课程》在线文档
Stars: ✭ 1,128 (+694.37%)
Mutual labels:  jenkins, gitlab
Linux Tutorial
《Java 程序员眼中的 Linux》
Stars: ✭ 7,757 (+5362.68%)
Mutual labels:  jenkins, gitlab
Gitlab Branch Source Plugin
Jenkins-Plugin to create a multi-branch-project from gitlab
Stars: ✭ 76 (-46.48%)
Mutual labels:  jenkins, gitlab
plugin-gitlab-webhook
[NOT MAINTAINED] Gitlab Webhook Plugin for Kanboard
Stars: ✭ 31 (-78.17%)
Mutual labels:  gitlab, webhook
rocketchat-gitlab-hook
Add GitLab notifications via a new WebHook in Rocket.Chat
Stars: ✭ 80 (-43.66%)
Mutual labels:  gitlab, webhook
docker
collection of docker / docker-compose files, dind, gitlab, jenkins, mongo, mysql, oracle, rabbitmq, redis, sonarqube
Stars: ✭ 25 (-82.39%)
Mutual labels:  jenkins, gitlab
Threatmapper
Identify vulnerabilities in running containers, images, hosts and repositories
Stars: ✭ 361 (+154.23%)
Mutual labels:  jenkins, gitlab
infraverse
Infrastructure Platforms and Applications Comparison
Stars: ✭ 77 (-45.77%)
Mutual labels:  jenkins, gitlab
mypaas
MyPaas is an Ansible playbook for startups or small companies which want to build a modern and fully automated infrastructure.
Stars: ✭ 24 (-83.1%)
Mutual labels:  jenkins, gitlab
Opscloud
运维管理平台(阿里云),自动同步阿里云配置信息,堡垒机(容器),批量运维,Kubernetes,Zabbix管理等功能
Stars: ✭ 788 (+454.93%)
Mutual labels:  jenkins, gitlab
Git Webhook
使用 Python Flask + SQLAchemy + Celery + Redis + React 开发的用于迅速搭建并使用 WebHook 进行自动化部署和运维,支持 Github / GitLab / Gogs / GitOsc。
Stars: ✭ 1,439 (+913.38%)
Mutual labels:  webhook, gitlab

hwamei

推荐使用 DinglingDingling 替代本项目,无需部署,简单配置即可打通企业微信群机器人与Github、Gitlab、Sentry、Jenkins 等工具 webhook。

hwamei 是一个基于 hubot 的企业微信聊天机器人,它能够通过 webhook 将收集的信息发送到企业微信群中。

已兼容企业微信原生webhook机器人!!! 具体见 https://github.com/tlikai/hwamei/pull/2

预览

企业微信群聊天机器人

工作流程

工作流程

安装

  • git clone https://github.com/tlikai/hwamei.git
  • 运行 npm install
  • 复制 sample.env 为 .env
  • 到企业微信后台创建一个应用
  • 将企业微信的 corpId 和 新建应用的 secret 填入 .env 文件

使用

  • 运行 ./bin/hubot 即可启动 hwamei

  • 目前支持通过命令管理企业微信群、管理 webhook

部署

https://github.com/hubotio/hubot/blob/master/docs/deploying.md

企业微信相关命令

  • hwamei>wxwork create chat {chatid} with {users} 创建一个群, users 以英文逗号分隔
  • hwamei>wxwork destroy chat {chatid} 删除一个群
  • hwamei>wxwork show {chatid} 显示群信息
  • hwamei>wxwork add {userid} to {chatid} 添加用户到指定群
  • hwamei>wxwork remove {userid} from {chatid} 从指定群中删除用户

企业微信消息推送文档 https://work.weixin.qq.com/api/doc#90000/90135/90243

webhook 相关命令

  • hwamei>webhook create {name} from {type} to {chatid} 创建一个 webhook
  • hwamei>webhook list 列出所有 webhook
  • hwamei>webhook delete all 删除所有 webhook
  • hwamei>webhook delete {token} 删除一个 webhook
  • hwamei>webhook update {token} {name|type|chat_id} to {value} 修改一个 webhook
  • hwamei>webhook backup 备份 webhooks 到 ./data/webhooks.json
  • hwamei>webhook restore 恢复 webhooks

webhook 使用

  1. 先创建 webhook
  • hwamei>webhook create test_incoming_webhook from incoming to test
  • 上面命令会创建一个名为 test_incoming_webhook 的 webhook,接收 incoming 类型的输入,输出到 test 企业微信群
  • 运行命令后系统会输出 webhook url,像这个 url 发送请求即可触发 webhook
  • There is your webhook url: /incoming/408dcc98-60a6-4a10-8c77-4679dd9a0a40
  1. 测试 webhook
  • shell>curl -XPOST http://localhost:8080/incoming/408dcc98-60a6-4a10-8c77-4679dd9a0a40 -H 'Content-type: application/json' -d '{ "message": "hello hwamei" }'
  • 运行上面的命令,正常情况下你的企业微信群应该就收到消息了
  1. 目前支持下列几种类型的 webhook type
  • incoming
    • { "message": "hello hwamei" }
    • { "text": "hello hwamei" }
  • sentry
  • gitlab
  • github

扩展更多命令

查看 https://github.com/hubotio/hubot/blob/master/docs/scripting.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].