Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

xiao333ma/WeChatWorkBot

Repository files navigation

企业微信机器人

Feature

Gitlab

  • push
  • merge request
  • tag

Life

  • 提醒喝水
  • 提醒订饭
  • 提醒下班
  • 嘘嘘 🐔

Usage

gitlabHooks

修改 config.json 中的 gitlabHooks

{
 "gitlabURL": "your/gitlab/repo/path.git",
 "weChatRobotURL": "your/weChatWork/Bot/URL",
 "push": true,
 "merge": true,
 "tag": true
}

字段含义

  1. gitlabURL gitlab 仓库地址,https://www.gitlab/some/path.git
  2. push 是否处理 push
  3. merge 是否处理 merge
  4. tag 是否处理 tag

life

修改 config.json 中的 life,在数组中添加如下 json 对象

 {
 "weChatRobotURL": "your/weChatWork/Bot/URL",
 "drinkWater": true,
 "offDuty": true,
 "orderMeal": true,
 "pee": true
 }

字段含义

  1. drinkWater 是否提醒喝水
  2. offDuty 是否提醒下班
  3. orderMeal 是否提醒订饭
  4. pee 是否提醒嘘嘘

部署

  1. 编译并部署到服务器上
  2. gitlab webhook 上,填入服务器接口地址 you.server.domain:9091/gitlabHook

欢迎提交 issue 或者 Pull Request

About

企业微信机器人

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /